Skip to content

Commit 86eeb6a

Browse files
committed
fix(a11y): use native checkboxes for compare facet selector
1 parent 91f44c1 commit 86eeb6a

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

app/components/Compare/FacetSelector.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function isFacetCheckboxDisabled(facet: FacetInfoWithLabels): boolean {
1919
}
2020
2121
function onFacetChange(facet: FacetInfoWithLabels) {
22-
if(isFacetCheckboxDisabled(facet)) return
22+
if (isFacetCheckboxDisabled(facet)) return
2323
toggleFacet(facet.id)
2424
}
2525

test/nuxt/components/compare/FacetSelector.spec.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ const categoryLabels: Record<string, string> = {
4242
}
4343

4444
const comingSoonFacetId = comingSoonFacets[0]
45-
const comingSoonFacetLabel = hasComingSoonFacets
46-
? (facetLabels[comingSoonFacetId!]?.label ?? comingSoonFacetId)
47-
: ''
4845

4946
// Helper to build facet info with labels
5047
function buildFacetInfo(facet: ComparisonFacet) {

0 commit comments

Comments
 (0)