Skip to content

Commit

Permalink
Enable tabbing through the depratment menu on mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
annagav committed Dec 6, 2024
1 parent 98ba6d3 commit ee81b99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/public/src/containers/pages/CatalogPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ export class CatalogPage extends React.Component<Props> {
*/
toggleMobileFilterWindowExpanded = (expanded: boolean) => {
this.setState({ mobileFilterWindowExpanded: expanded })
const inputs = [...document.getElementsByTagName("a")]
inputs.forEach(input => input.setAttribute('tabindex', expanded ? "-1" : "0"))
}

/**
Expand Down Expand Up @@ -773,7 +775,6 @@ export class CatalogPage extends React.Component<Props> {
)
return (
<nav
className="sticky-top"
id="department-sidebar"
aria-label="department filters"
>
Expand Down

0 comments on commit ee81b99

Please sign in to comment.