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

adobe / spectrum-web-components / 30916172232
96%

Build:
DEFAULT BRANCH: main
Ran 04 Aug 2026 02:01PM UTC
Jobs 1
Files 403
Run time 2min
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

04 Aug 2026 01:54PM UTC coverage: 96.241% (-0.001%) from 96.242%
30916172232

push

github

web-flow
[Docs(theme)]: Fix nested sp-theme demo examples ignoring their own attributes (#6570)

* fix(documentation): load theme CSS fragments for nested demo sp-theme examples

Nested `<sp-theme>` elements in markdown demo snippets (e.g. system="express")
never triggered lazy-loading of their CSS fragments; only the global theme
picker did. This left demos silently inheriting the outer page theme instead
of the one declared in the example.

Extract lazyStyleFragment into a shared util and have code-example scan its
live demo markup for sp-theme color/scale/system combinations to preload.

* fix(documentation): gate demo scan behind sp-theme check, add e2e coverage

Address review feedback on #6570:
- Skip parsing every demo's HTML for nested sp-theme tags unless the
  string actually contains one, avoiding createContextualFragment on
  demos that never use it.
- Extract the attribute/system-fallback/branching logic into a pure
  getThemeFragmentRequests helper, decoupled from the DOM.
- Add an e2e spec (run in the existing PR-preview smoke test job)
  asserting the express/light/large demo renders distinctly from the
  spectrum/dark/medium one instead of inheriting the outer theme.

* fix(documentation): rewrite bundle chunk refs to absolute paths

@web/rollup-plugin-html emits chunk/entry script and modulepreload
references relative to each HTML file's own directory (e.g.
`../swc.[hash].js`). That only resolves correctly when the request URL
has a trailing slash, so a page requested without one (as our PR
preview links do, since the Azure $web static host doesn't redirect
to add it) resolves the reference against the wrong directory and
404s, breaking every custom element on the page.

Rewrite those refs to the same domain-absolute, SWC_DIR-aware form
already used for the site's other root-relative asset paths, so
loading no longer depends on the request URL's shape.

6021 of 6465 branches covered (93.13%)

Branch coverage included in aggregate %.

37993 of 39268 relevant lines covered (96.75%)

460.23 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30916172232.1 04 Aug 2026 02:01PM UTC 403
96.24
GitHub Action Run
Source Files on build 30916172232
  • Tree
  • List 403
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #30916172232
  • b416eef0 on github
  • Prev Build on main (#30814256009)
  • Next Build on main (#30925168923)
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