• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

adobe / spectrum-web-components / 42648297518
96%

Build:
DEFAULT BRANCH: main
Ran 09 Nov 2026 03:56PM UTC
Jobs 1
Files 406
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Nov 2026 03:48PM UTC coverage: 96.367% (+0.002%) from 96.365%
42648297518

push

github

web-flow
fix(tabs): register and link slotted tabs added after the initial render (#6811)

* fix(tabs): set tab role on connect so slotted tabs are picked up

sp-tab set role="tab" in firstUpdated, which runs after sp-tabs has
already handled slotchange for newly added tabs. sp-tabs filters its
slotted elements by role, so tabs that replaced the slotted content were
ignored, the current selection was cleared and the new tabs could not
be selected. Set the role in connectedCallback instead.

* fix(tabs): link replacement tabs to their panels

sp-tabs only linked tabs and panels when the tab-panel slot changed, and
sp-tab only got its id after its first render. When the slotted tabs were
replaced and the panels stayed, the new tabs had no aria-controls and the
panels pointed to the removed tabs.

sp-tab now sets its id on connect, and sp-tabs relinks the panels when the
tabs change. Add tests for tabs rendered by a switching Lit template,
appended tabs, panel links, the tab stop without a selection, keyboard
navigation and the selection indicator.

Co-authored-by: kwy404 <thekaway404@gmail.com>

* fix(tabs): link replacement swc-tab elements to their panels

swc-tabs had the same gap as sp-tabs: tab panels were only linked when the
tab-panel slot changed, and swc-tab only got its id after its first render.
swc-tab now sets its id on connect, and swc-tabs relinks the panels when
the tabs change.

Add tests for tabs added after the initial render: selection, a switching
Lit template, panel links, the tab stop without a selection and keyboard
navigation.

* fix(tabs): remove stale panel labels after tab removal

Clear only aria-labelledby links assigned by tabs when their tab disappears,
so a surviving panel never points at a removed tab. Preserve labels supplied
by consumers when no tab matches and restore component links when a tab
with the matching value returns.

* test(tabs): assert indicator position and width for replacement tab

* fix(tabs): set tab role on... (continued)

6188 of 6629 branches covered (93.35%)

Branch coverage included in aggregate %.

86 of 89 new or added lines in 2 files covered. (96.63%)

38746 of 39999 relevant lines covered (96.87%)

471.78 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
97.4
-0.06% 1st-gen/packages/tabs/src/Tabs.ts
Jobs
ID Job ID Ran Files Coverage
1 42648297518.1 09 Nov 2026 03:56PM UTC 406
96.37
GitHub Action Run
Source Files on build 42648297518
  • Tree
  • List 406
  • Changed 9
  • Source Changed 2
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #42648297518
  • 0e9d1e45 on github
  • Prev Build on main (#40718669357)
  • Next Build on main (#42709171156)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc