Skip to content

Use :host in root selectors so Web Components can access CSS vars - #42839

Open
mdo wants to merge 1 commit into
v6-devfrom
use-host-selectors
Open

Use :host in root selectors so Web Components can access CSS vars#42839
mdo wants to merge 1 commit into
v6-devfrom
use-host-selectors

Conversation

@mdo

@mdo mdo commented Aug 13, 2026

Copy link
Copy Markdown
Member

Reproduce #37162 on v6-dev: pair :host with every :root selector that emits CSS custom properties, so Web Components in shadow roots get the tokens.

  • Root, color, grid, and reboot token selectors
  • Color-mode mixin and its test

Reproduce #37162 on v6-dev. Adds `:host` beside every
`:root` selector that emits CSS custom properties, so components styled
in a shadow root see the tokens.
@mdo
mdo requested a review from a team as a code owner August 13, 2026 03:36
@mdo mdo added this to v6.0.0 Aug 13, 2026
@github-project-automation github-project-automation Bot moved this to Inbox in v6.0.0 Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

1 participant