Regarding a potential solution to making the `NamedDeck` component more reusable, a quick fix would be to add this condition [here](https://searchfox.org/mozilla-central/source/toolkit/content/widgets/named-deck.js#375), which is what the `NamedDeckButton` component does (in the same file). ``` if (!this.hasAttribute("role")) { view.setAttribute("aria-labelledby", `${this.id}-button-${name}`); view.setAttribute("role", "tabpanel"); } ```
Bug 1764137 Comment 7 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Regarding a potential solution to making the `NamedDeck` component more reusable, a quick fix would be to add this condition [here](https://searchfox.org/mozilla-central/source/toolkit/content/widgets/named-deck.js#375), which is what the `NamedDeckButton` component does (in the same file). And then we'd pass whatever role UX deems appropriate into the `named-deck` element in `firefoxview.html`. ``` if (!this.hasAttribute("role")) { view.setAttribute("aria-labelledby", `${this.id}-button-${name}`); view.setAttribute("role", "tabpanel"); } ```