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

When should we style :host, or use parent element? #209

Open
2 tasks
andij opened this issue Feb 7, 2022 · 1 comment
Open
2 tasks

When should we style :host, or use parent element? #209

andij opened this issue Feb 7, 2022 · 1 comment

Comments

@andij
Copy link
Contributor

andij commented Feb 7, 2022

Outcome

Define rules for styling the :host selector of a component.

Scope

  • Research and discussion on this topic
  • Document the outcome in the Handbook
@andij andij mentioned this issue Feb 7, 2022
48 tasks
@jholt1
Copy link
Contributor

jholt1 commented Mar 10, 2022

Current recommendation is to try not to put styles onto the host. Reasons why:

  • Attributes that are targeted might not be there/wanted when used in a system
  • They can easily be changed by end users

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