Skip to content

Commit

Permalink
added role presentation to avoid the content being narrated as a tabl…
Browse files Browse the repository at this point in the history
…e by the screen reader
  • Loading branch information
StoianLucian committed Nov 22, 2023
1 parent 4b86af1 commit b150449
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions coral-component-masonry/src/scripts/Masonry.js
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,10 @@ const Masonry = Decorator(class extends BaseComponent(HTMLElement) {
} else {
this.parentElement.removeAttribute('aria-colcount');
}

if(this.parentElement.classList.contains('globalnav-collection-container')) {
this.parentElement.setAttribute('role', 'presentation');
}
}

_validateSelection(item) {
Expand Down

0 comments on commit b150449

Please sign in to comment.