Skip to content

Commit 0d19f99

Browse files
committed
fix(core): tabs aria controller overwrites user aria-labelledby
1 parent 608a2a8 commit 0d19f99

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/pfe-core/controllers/tabs-aria-controller.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ export class TabsAriaController<
7373

7474
hostUpdated() {
7575
for (const [tab, panel] of this.#tabPanelMap) {
76-
if (!panel.hasAttribute('aria-labelledby')) {
77-
panel.setAttribute('aria-labelledby', tab.id);
78-
}
76+
panel.setAttribute('aria-labelledby', tab.id);
7977
tab.setAttribute('aria-controls', panel.id);
8078
}
8179
}

0 commit comments

Comments
 (0)