fix(tabbutton): A11Y - enable tabindex.

This commit is contained in:
José Rio
2025-02-05 14:58:29 +00:00
parent 295fa00527
commit d9f8c1352f

View File

@@ -172,7 +172,7 @@ export class TabButton implements ComponentInterface, AnchorInterface {
role="tab"
aria-selected={selected ? 'true' : null}
aria-disabled={disabled ? 'true' : null}
tabindex={disabled ? '-1' : undefined}
tabindex={disabled ? '-1' : '0'}
{...inheritedAttributes}
>
<span class="button-inner">