Skip to content

Commit

Permalink
Accessibility: selection improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
kreafox committed Apr 5, 2023
1 parent da079cb commit 70e7d89
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
1 change: 0 additions & 1 deletion searchlib/components/Facets/ActiveFilters.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const ActiveFilters = (props) => {
<Term term={option} field={field} />
<Button
className="clear-filters"
size="mini"
onClick={() => {
// let filteredValues = activeFilter.filter(
// (v) => v !== option,
Expand Down
12 changes: 11 additions & 1 deletion searchlib/components/Facets/Wrappers/DropdownFacetWrapper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,19 @@ const DropdownFacetWrapper = (props) => {

{isOpen && (
<div
className={cx('facet-menu', {
role="tab"
tabIndex={0}
className={cx('facet-wrapper', {
active: isOpen,
})}
onKeyDown={(e) => {
if (e.key === 'Enter') {
setIsOpen(true);
}
if (e.key === 'Escape') {
setIsOpen(false);
}
}}
>
<SUIFacet
{...props}
Expand Down
9 changes: 3 additions & 6 deletions src/SearchBlock/less/dropdown-filterlist.less
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
}
}

.facet-menu {
.facet-wrapper {
position: absolute;
bottom: auto !important;
min-width: 350px;
Expand All @@ -65,13 +65,9 @@
}

.clear-filters {
padding: 0;
margin: 0 !important;
background-color: transparent;
color: @darkCerulean;
float: right;
font-size: 14px;
font-weight: 500;
}
}

Expand Down Expand Up @@ -142,7 +138,7 @@
.ui.card.term.active-term {
width: auto !important;
min-width: auto;
margin: 5px 1.5em 5px 0 !important;
margin: 5px 1em 5px 0 !important;

.header,
span.count {
Expand All @@ -152,6 +148,7 @@

.card-header {
flex-direction: row;
padding: 0.2rem !important;
text-align: left !important;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/SearchBlock/less/searchview.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ body.searchlib-page {
overflow-x: hidden !important;

.content-area {
z-index: 100;
z-index: 2 !important;
}

.searchlib-block {
Expand Down

0 comments on commit 70e7d89

Please sign in to comment.