Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scoping out the "Components - Styling" post #48

Open
knowler opened this issue Dec 25, 2022 · 1 comment
Open

Scoping out the "Components - Styling" post #48

knowler opened this issue Dec 25, 2022 · 1 comment

Comments

@knowler
Copy link
Collaborator

knowler commented Dec 25, 2022

Been thinking about this post and what the content should be. Here are some ideas. It doesn't need to contain everything.

  • Important concepts for working with styles in the Shadow DOM.
    • CSS inheritance and which properties inherit.
    • CSS custom properties inherit by default (until we have @property)
    • The order of precedence (I can rework this: https://shadowdom.style)
    • Shadow DOM specific selectors
    • Having a good mental model for slots and parts.
    • Maybe stuff like CustomStateSet for state pseudo selectors.
  • Ways to style components (i.e. style tag in shadow DOM, link tag in Shadow DOM, constructed stylesheets).
  • Best practices for styling.
@keithamus
Copy link
Contributor

This is great!

Having a good mental model for slots and parts.

I am hoping that we can provide some really good documentation for Slots as part of the shadowdom section, but maybe it should be broken down further. I do think parts should only be in the CSS section though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants