elem.setAttribute('tabindex', '2'); -- or -- elem.tabIndex = 2;
<calcite-dropdown-item tabindex="0" ... calcite-hydrated="">
Solved! Go to Solution.
Hi @GregoryBologna, We don't support user-defined tabindex on components at this time. However, there is an open issue to allow setting a tabindex of "-1" to calcite-button.
As for setting tabindex's above 0, it is not a recommended practice with Calcite for accessibility as it can create maintainability problems and unexpected user behavior. Additional background on tabindex is available on mdn's site.
Hi @GregoryBologna, We don't support user-defined tabindex on components at this time. However, there is an open issue to allow setting a tabindex of "-1" to calcite-button.
As for setting tabindex's above 0, it is not a recommended practice with Calcite for accessibility as it can create maintainability problems and unexpected user behavior. Additional background on tabindex is available on mdn's site.