Skip to content

Commit

Permalink
Add aria-label attributes for improved accessibility in SearchFilters…
Browse files Browse the repository at this point in the history
…Mobile component
  • Loading branch information
Adamik10 committed Nov 18, 2024
1 parent 4e477bb commit 1839801
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/shared/searchFilters/SearchFiltersMobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const SearchFiltersMobile = ({ facets }: SearchFiltersMobileProps) => {
aria-label="Vis filtreringsmuligheder"
onClick={() => setIsSheetOpen(!isSheetOpen)}
className="flex flex-row items-center gap-1 text-typo-link">
<Button asChild>
<Button asChild ariaLabel="VIS FILTRE">
<div>
<Icon name="adjust" className="h-[40px]" />
VIS FILTRE
Expand All @@ -62,6 +62,7 @@ const SearchFiltersMobile = ({ facets }: SearchFiltersMobileProps) => {
toggleFilter(facet.name, value.term, router)
}}
key={value.term}
ariaLabel={value.term}
isActive
classNames="flex flex-row items-center pr-1">
{value.term}
Expand Down Expand Up @@ -92,7 +93,8 @@ const SearchFiltersMobile = ({ facets }: SearchFiltersMobileProps) => {
toggleFilter(facet.name, value.term, router)
}}
isActive={!!searchParams.getAll(facet.name).includes(value.term)}
key={index}>
key={index}
ariaLabel={value.term}>
{value.term}
</BadgeButton>
))}
Expand Down

0 comments on commit 1839801

Please sign in to comment.