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

Support interpolation #89

Open
marcfallows opened this issue Mar 22, 2017 · 0 comments
Open

Support interpolation #89

marcfallows opened this issue Mar 22, 2017 · 0 comments

Comments

@marcfallows
Copy link

It would be helpful for some edge cases of components to be able to interpolate or build up the class name to create some more specific rules:

@value alert from 'alert.css';

.link {
  /* link styling */
}

alert .link {
  /* some link styling that is specific to alerts */
}

postcss-simple-vars has this.

I know it's slightly against the principal of modules but rather than have some snowflake AlertLink component that you have to know to use when being put inside an alert, it would be great if the small number of cases could be handled in CSS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants