-
Notifications
You must be signed in to change notification settings - Fork 62
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
Support private classes #294
Comments
OK, putting on my W3C mailing list hat: what's the use-case? |
Simply that Stylable exposes any CSS class as a pseudo-element by default, and there is no way to have simple CSS class that are not accessible from the outside. |
From a conversation with Ido on Slack (putting it here to remind me when I have another attack of the stupids): why have a special thing that hides it, when -st-overrride: deny(*) would do the same thing? idoros [6:12 PM] bruce [6:13 PM] |
Interesting note from @tabatkins on design decisions for CSS that allows component authors to "lock down" styles, while allowing component users to override defaults w3c/csswg-drafts#2290 (comment) |
Closing in favor of #2604 |
Currently any CSS class declared in a Stylable stylesheet is considered a
pseudo-element
public API. In some cases a stylesheet author could keep "template" classes by importing them and mixin them in, or use the future-st-filter: deny(*)
to block any CSS overrides, but it would be much more helpful to introduce an-st-access: private
directive that will simply hide the class from external overrides.edit: possible values should be:
The text was updated successfully, but these errors were encountered: