From d09c4f06a7c567421e31a59afccfc3c1318b54da Mon Sep 17 00:00:00 2001 From: Chris Haynes Date: Sat, 1 Aug 2020 22:40:40 +0100 Subject: [PATCH] Fix typo in aria attribute --- src/components/tab-group/tab-group.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/tab-group/tab-group.tsx b/src/components/tab-group/tab-group.tsx index 195fe4bf..c0228bf3 100644 --- a/src/components/tab-group/tab-group.tsx +++ b/src/components/tab-group/tab-group.tsx @@ -62,7 +62,7 @@ export class TabGroup { this.mutationObserver = new MutationObserver(mutations => { if ( mutations.some(mutation => { - return !['arial-labeledby', 'aria-controls'].includes(mutation.attributeName); + return !['aria-labeledby', 'aria-controls'].includes(mutation.attributeName); }) ) { setTimeout(() => this.setAriaLabels()); @@ -141,7 +141,7 @@ export class TabGroup { const panel = panels.find(el => el.name === tab.panel); if (panel) { tab.setAttribute('aria-controls', panel.getAttribute('id')); - panel.setAttribute('arial-labeledby', tab.getAttribute('id')); + panel.setAttribute('aria-labeledby', tab.getAttribute('id')); } }); }