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

Improve style sheet adoption ergonomics. #166

Merged
merged 1 commit into from
Oct 18, 2024
Merged

Commits on Oct 16, 2024

  1. Improve style sheet adoption ergonomics.

    One common pattern for element authors (now that import attributes
    enable folks to import css files directly) is to adopt imported style
    sheets into a shadow root at custom element initialization time.
    
    This adds one static getter — `styles`. It’s still possible to do
    something more custom in `createRenderRoot`, but this adds a simple,
    declarative interface for the task of adding styles to a shadow root.
    
    Closes #52.
    theengineear committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    526c68f View commit details
    Browse the repository at this point in the history