You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be worth adding an option for the output styles to prefix an ID (e.g. #Style-4n412lnmi) instead of a class (.Style-4n412lnmi)?
Scenario being, IDs will absolutely clobber any other specificity, which is normally bad, except in one instance: when you need to sandbox styles for a component.
Right now, to do this, you can either:
Wrap your component an in <iframe> & deal with 10x more problems.
Prefix your styles with an ID # and using something like normalize.css to reset all child elements.
This way, any existing styles on the page are pretty much guaranteed not to affect your component. This is ideal for when distributing a solution like:
Would it be worth adding an option for the output styles to prefix an ID (e.g.
#Style-4n412lnmi
) instead of a class (.Style-4n412lnmi
)?Scenario being, IDs will absolutely clobber any other specificity, which is normally bad, except in one instance: when you need to sandbox styles for a component.
Right now, to do this, you can either:
<iframe>
& deal with 10x more problems.#
and using something likenormalize.css
to reset all child elements.This way, any existing styles on the page are pretty much guaranteed not to affect your component. This is ideal for when distributing a solution like:
Interesting in your thoughts!
The text was updated successfully, but these errors were encountered: