Skip to content

Commit

Permalink
fix accessibility filters
Browse files Browse the repository at this point in the history
  • Loading branch information
matteogiacinti1993 committed May 16, 2024
1 parent 5073140 commit dd4db34
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ function FilterCategoryDynamic({
/>
</div>
)}
<div
<ul
className="openk9-filter-form-check-container"
css={css`
display: flex;
Expand Down Expand Up @@ -261,7 +261,7 @@ function FilterCategoryDynamic({

return (
<React.Fragment key={"fragment-filter-dynamic " + index}>
<div
<li
key={index}
className="form-check"
css={css`
Expand Down Expand Up @@ -387,11 +387,11 @@ function FilterCategoryDynamic({
)}
</label>
</span>
</div>
</li>
</React.Fragment>
);
})}
</div>
</ul>
{!isUniqueLoadMore && suggestions.hasNextPage && (
<div
className="openk9-container-load-more"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ function FiltersMobileLiveChange<E>({
}}
>
<FiltersMemo
memoryResults={memoryResults}
searchQuery={searchQuery}
onAddFilterToken={onAddFilterToken}
onRemoveFilterToken={onRemoveFilterToken}
Expand Down Expand Up @@ -216,12 +217,6 @@ function FiltersMobileLiveChange<E>({
}
`}
>
<div
css={css`
margin-top: 10px;
border: 0.5px solid #d4d4d8;
`}
></div>
<button
className="openk9-filter-horizontal-submit openk9-filter-button-mobile-remove"
aria-label={t("remove-filters") || "remove filters"}
Expand Down Expand Up @@ -340,6 +335,7 @@ function ViewAllTabs({

return (
<div
className="openk9-filter-tabs-container"
css={css`
margin-left: 16px;
`}
Expand Down Expand Up @@ -385,15 +381,17 @@ function ViewAllTabs({
</button>
)}
</div>
<div
<ul
className="openk9-filter-tabs-list"
css={css`
margin: 10px 0px;
`}
>
{isOpen &&
tabs.map((tab, index) => {
return (
<div
<li
className="openk9-filter-tabs-list-item"
css={css`
display: flex;
gap: 10px;
Expand Down Expand Up @@ -438,10 +436,10 @@ function ViewAllTabs({
{capitalize(tab.label)}
</label>
</div>
</div>
</li>
);
})}
</div>
</ul>
</div>
);
}
Expand Down

0 comments on commit dd4db34

Please sign in to comment.