Skip to content

Add some examples to Shadow DOM Styling page #3342

Open
@rolfsmeds

Description

@rolfsmeds

The docs currently mention shadow-specific selectors like :host and ::slotted, but doesn't show how to use those. It would be good with some code examples of stuff like

  • Combining :host() with classnames and attributes.
  • Using ::slotted() and its limitations
  • Part name attribute selectors
  • General limitations (e.g. lack of parent context)

(Also move the "No longer recommended" admonition higher up to be more prominent.)


If you think this issue is important, add a 👍 reaction to help the community and maintainers prioritize this issue.

Metadata

Metadata

Assignees

Labels

stylingStyling section

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions