Bug 1845909 - Hide button from accessibility since it's handled by the outer category. r=kcochrane,fxview-reviewers,ayeddi

Differential Revision: https://phabricator.services.mozilla.com/D185440
This commit is contained in:
Mike Kaply
2023-08-07 19:48:20 +00:00
parent fe66a42c6c
commit 62b75caa84

View File

@@ -134,7 +134,12 @@ export class FxviewCategoryButton extends MozLitElement {
render() {
return html`
<link rel="stylesheet" href=${this.constructor.stylesheetUrl} />
<button tabindex="-1" ?selected=${this.selected} @click=${this.activate}>
<button
aria-hidden="true"
tabindex="-1"
?selected=${this.selected}
@click=${this.activate}
>
<span class="category-icon" part="icon"></span>
<slot></slot>
</button>