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

Introduce scopeBehaviour css-modules option #315

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

krasnoukhov
Copy link

We're looking to use ember-css-modules for our large apps. We'll be migrating away from ember-component-css. In order to do that seamlessly, we need to turn off behavior for localizing every selector. We want to localize explicitly via :local(.component) { ... } syntax. So I thought I'd propose this change here to this addon. Basically after this one could say scopeBehaviour: 'global' in the config and achieve the behavior I'm talking about.

This is inspired by original postcss-modules option, documented here: https://github.com/madyankin/postcss-modules/tree/v6.0.0#generating-scoped-names
See this issue for the context: madyankin/postcss-modules#22 (comment)

Seems like they had it since 2016 so I hope this change to this addon would be welcome as well. If this is approved, I can add documentation.

Related PR to the broccoli-css-modules: salsify/broccoli-css-modules#27

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

Successfully merging this pull request may close these issues.

None yet

1 participant