fix: remove base component a11y label (#648)

This commit is contained in:
Innei 2023-06-17 05:05:09 +08:00 committed by GitHub
parent 979a0f00a0
commit 58c74390b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -25,6 +25,7 @@ export const BackToTopFAB = () => {
return (
<FABBase
id="to-top"
aria-label="Back to top"
show={shouldShow}
onClick={() => {
window.scrollTo({

View File

@ -64,7 +64,7 @@ export const FABBase = (
>
>,
) => {
const { children, id, show = true, ...extra } = props
const { children, show = true, ...extra } = props
const { className, onTransitionEnd, ...rest } = extra
const [mounted, setMounted] = useState(true)
@ -98,7 +98,6 @@ export const FABBase = (
className,
)}
onTransitionEnd={handleTransitionEnd}
aria-label="back to top"
{...rest}
>
{children}