diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-06-12 03:09:44 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-06-12 03:09:44 +0200 |
commit | 633af67516ab9a4b94cfd739b4024cc9c8e82ffe (patch) | |
tree | 6e87539401fb9028e51f84eb309105f3fad8317a /static/components/tab-group-element.ts | |
parent | Add html validator. (diff) | |
download | calp-633af67516ab9a4b94cfd739b4024cc9c8e82ffe.tar.gz calp-633af67516ab9a4b94cfd739b4024cc9c8e82ffe.tar.xz |
Fix spelling of aria-labelledby.
Diffstat (limited to '')
-rw-r--r-- | static/components/tab-group-element.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/static/components/tab-group-element.ts b/static/components/tab-group-element.ts index 8a65964d..1c58b0fb 100644 --- a/static/components/tab-group-element.ts +++ b/static/components/tab-group-element.ts @@ -113,7 +113,7 @@ class TabGroupElement extends ComponentVEvent { role: 'tabpanel', tabindex: 0, hidden: 'hidden', - 'aria-labeledby': label_id, + 'aria-labelledby': label_id, }) tabContainer.replaceChildren(child); @@ -129,7 +129,7 @@ class TabGroupElement extends ComponentVEvent { } removeTab(tab: HTMLElement) { - let id = tab.getAttribute('aria-labeledby')! + let id = tab.getAttribute('aria-labelledby')! let label = document.getElementById(id) if (label) { if (label.ariaSelected === 'true') { |