fix: remove base component a11y label (#648)
This commit is contained in:
parent
979a0f00a0
commit
58c74390b7
|
|
@ -25,6 +25,7 @@ export const BackToTopFAB = () => {
|
|||
return (
|
||||
<FABBase
|
||||
id="to-top"
|
||||
aria-label="Back to top"
|
||||
show={shouldShow}
|
||||
onClick={() => {
|
||||
window.scrollTo({
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in New Issue