From e00d06e45bf0b15c018c3313fb129d938f56cb2b Mon Sep 17 00:00:00 2001 From: Jan Bensch <53659806+janbensch@users.noreply.github.com> Date: Tue, 14 Mar 2023 05:50:08 +0100 Subject: Fix wrong generation of `aria-labelledby` in tab navigation (#38223) * fix wrong generation of aria-labelledby in tab navigation * fix wrong test --------- Co-authored-by: Jan Bensch Co-authored-by: XhmikosR --- js/src/tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/src') diff --git a/js/src/tab.js b/js/src/tab.js index cdba0e2e6..137cc0123 100644 --- a/js/src/tab.js +++ b/js/src/tab.js @@ -212,7 +212,7 @@ class Tab extends BaseComponent { this._setAttributeIfNotExists(target, 'role', 'tabpanel') if (child.id) { - this._setAttributeIfNotExists(target, 'aria-labelledby', `#${child.id}`) + this._setAttributeIfNotExists(target, 'aria-labelledby', `${child.id}`) } } -- cgit v1.2.3