Skip to content

Commit

Permalink
Simplify aria-hidden
Browse files Browse the repository at this point in the history
Remove the extra `="true"`
  • Loading branch information
ZEBAS204 committed Mar 24, 2023
1 parent af286de commit e479641
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Box } from '@chakra-ui/react'

export default function Footer() {
return (
<Box aria-hidden="true">
<Box aria-hidden>
<Box
h={16}
clipPath="polygon(
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/ScrollMessage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function ScrollMessage() {
</AlertDialogHeader>

<AlertDialogBody display="flex" justifyContent="center">
<Box as={ScrollAnimation} w="full" h="8em" aria-hidden="true" />
<Box as={ScrollAnimation} w="full" h="8em" aria-hidden />
</AlertDialogBody>

<AlertDialogFooter justifyContent="center">
Expand Down
6 changes: 3 additions & 3 deletions src/components/settings/Accessibility.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Slider = (props) => (
step={1}
{...props}
>
<SliderTrack aria-hidden="true">
<SliderTrack aria-hidden>
<SliderFilledTrack />
</SliderTrack>
{props.children}
Expand Down Expand Up @@ -73,11 +73,11 @@ const VolumeSlider = () => {
defaultValue={TTS._volume * 100}
>
<Tooltip
aria-hidden="true"
isOpen={displayVolumeTooltip}
label={volume}
placement="top"
hasArrow
aria-hidden
>
<SliderThumb />
</Tooltip>
Expand Down Expand Up @@ -112,11 +112,11 @@ const RateSlider = () => {
defaultValue={TTS._rate * 100}
>
<Tooltip
aria-hidden="true"
isOpen={displaySpeedTooltip}
label={speed}
placement="top"
hasArrow
aria-hidden
>
<SliderThumb />
</Tooltip>
Expand Down
2 changes: 1 addition & 1 deletion src/components/timer/TimePicker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const ArrowButton = ({ asIcon, onClick }) => (
)

const NumText = ({ children }) => (
<Text fontSize="lg" aria-hidden="true">
<Text fontSize="lg" aria-hidden>
{children}
</Text>
)
Expand Down

1 comment on commit e479641

@vercel
Copy link

@vercel vercel bot commented on e479641 Mar 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.