Skip to content

Commit

Permalink
fixing accessibility test on SearchFilterGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
stephiescastle committed Sep 15, 2024
1 parent fafac8b commit ae2b57f
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ export const DateFilter = {
}
}
export const SubFilters = {
decorators: [
() => ({
template: '<div id="storyRoot" class="md:w-1/2 lg:w-1/3"><story /></div>'
})
],
args: {
filterBy: [],
buckets: [
Expand Down Expand Up @@ -104,6 +109,40 @@ export const SubFilters = {
agg: 'solar_system_area',
doc_count: 22
}
],
stars_and_galaxies: [
{
key: 'Sea Level',
agg: 'solar_system_area',
doc_count: 20
},
{
key: 'Pollution',
agg: 'solar_system_area',
doc_count: 21
},
{
key: 'Climate Change',
agg: 'solar_system_area',
doc_count: 22
}
],
technology: [
{
key: 'Sea Level',
agg: 'solar_system_area',
doc_count: 20
},
{
key: 'Pollution',
agg: 'solar_system_area',
doc_count: 21
},
{
key: 'Climate Change',
agg: 'solar_system_area',
doc_count: 22
}
]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const emit = defineEmits(['filterGroupAccordionItemOpened', 'filterGroupAccordio
<button
v-bind-once="{ id: headingId, 'aria-controls': panelId }"
:aria-expanded="ariaExpanded"
aria-label="Expand"
class="SearchFilterGroupAccordionItem-trigger group block w-auto text-body-lg pl-4 pr-1 -my-2"
@click="handleClick()"
>
Expand Down

0 comments on commit ae2b57f

Please sign in to comment.