We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A nice easy win — currently if you have a component with CSS, top-level elements get this treatment:
setAttribute( div, 'svelte-3599223440', '' );
If there's more than one top-level element, it would make more sense to do this instead:
var cssAttr = 'svelte-3599223440'; // ... setAttribute( div, cssAttr, '' );
Or even
function encapsulateStyles ( node ) { div.setAttribute( 'svelte-3599223440', '' ); } // ... encapsulateStyles( div );
The text was updated successfully, but these errors were encountered:
use helper to encapsulate styles, rather than being repetitious (fixes …
70a9992
…#375)
Merge pull request #733 from sveltejs/gh-375
608f894
use helper to encapsulate styles, rather than being repetitious
Successfully merging a pull request may close this issue.
A nice easy win — currently if you have a component with CSS, top-level elements get this treatment:
If there's more than one top-level element, it would make more sense to do this instead:
Or even
The text was updated successfully, but these errors were encountered: