Skip to content

Commit

Permalink
Merge pull request #880 from navikt/feature/hide-announce-text
Browse files Browse the repository at this point in the history
add visually hidden
  • Loading branch information
audisaudisaudis authored Jan 16, 2025
2 parents ecfdd78 + b40fd76 commit 7528c0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/(sok)/_components/searchBox/ScreenReaderText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const ScreenReaderText = ({ selectedOptions }: ScreenReaderTextProps) => {
}, [selectedOptions]);

return (
<BodyShort as="span" aria-live="polite" role="alert">
<BodyShort as="span" aria-live="polite" role="alert" visuallyHidden>
{screenReaderText}
</BodyShort>
);
Expand Down

0 comments on commit 7528c0d

Please sign in to comment.