Skip to content

v1.12.6 (gen1)

Latest

Choose a tag to compare

@Rajdeepc Rajdeepc released this 10 Nov 04:13
· 4 commits to main since this release
a51a39f

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

Full changelog · Compare with 1.12.5