Skip to content

Commit

Permalink
Accessibility fix inpage and search filter
Browse files Browse the repository at this point in the history
  • Loading branch information
MarosVi committed Jun 28, 2023
1 parent 140c27e commit 6a31cab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
position: fixed;
top: 70px;
width: 100%;
height: auto;

@include mq($from: desktop) {
position: sticky;
Expand Down
5 changes: 5 additions & 0 deletions src/idsk/components/search-results/search-results.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,11 @@ SearchResults.prototype.handleClickLinkPanel = function (e) {

toggleClass($contentPanel, 'idsk-search-results--hidden')
toggleClass($linkPanelButton, 'idsk-search-results--expand')
if ($linkPanelButton.classList.contains('idsk-search-results--expand')) {
$el.setAttribute('aria-expanded', 'true')
} else {
$el.setAttribute('aria-expanded', 'false')
}
}

/**
Expand Down

0 comments on commit 6a31cab

Please sign in to comment.