Repository navigation
This patch release fixes <sp-tabs> ignoring <sp-tab> elements that are added after the initial render, for example when the slotted tabs are swapped out.
<sp-tab> now sets role="tab" and its id when it connects rather than after its first render, so <sp-tabs> finds the new tabs when the slot changes. Previously the current selected value was cleared and the replacement tabs could not be selected unless role="tab" was set on them by hand.
<sp-tabs> also relinks its tab panels when the tabs change, so replacement tabs receive aria-controls and the panels get an aria-labelledby that points at the new tabs. A stale aria-labelledby is removed when a panel no longer has a matching tab, and a stale aria-controls is removed when a tab no longer has a matching panel. Values you set yourself are kept.
Install: npm i @spectrum-web-components/bundle@1.12.6