Skip to content

Commit

Permalink
narrator hack
Browse files Browse the repository at this point in the history
  • Loading branch information
scomea committed Jan 24, 2024
1 parent 420efc1 commit e17f4a1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/web-components/fast-foundation/src/tabs/tabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,13 @@ export class FASTTabs extends FASTElement {
if (tabElement) {
if (tabId === this.activeid) {
activeTab = tabElement;
tabElement.setAttribute("role", "tab");
tabElement.setAttribute("aria-posinset", `${index + 1}`);
tabElement.setAttribute("aria-setsize", `${this.tabOrder.length}`);
} else {
tabElement.removeAttribute("role");
tabElement.removeAttribute("aria-posinset");
tabElement.removeAttribute("aria-setsize");
}
// If the original property isn't emptied out,
// the next set will morph into a grid-area style setting that is not what we want
Expand Down

0 comments on commit e17f4a1

Please sign in to comment.