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

Overriding a CSS variable with CSS modules and dashedIdents #764

Open
evertheylen opened this issue Jun 26, 2024 · 1 comment
Open

Overriding a CSS variable with CSS modules and dashedIdents #764

evertheylen opened this issue Jun 26, 2024 · 1 comment

Comments

@evertheylen
Copy link

Imagine I have a button component with (complex) hover states:

.button {
  --accent: red;
}

.button:hover {
  border: 1px solid var(--accent);
}

Now I want to create a variant of said button:

.other-button {
  composes: button from './button.module.css';
  --accent from './button.module.css': blue;
}

I can't write from '...' in the left hand side of that last line. How can I solve this?

(Right now, this and the other two issues I filed (#753, #763) present too much of a hurdle for me to use lightningcss)

@cameronbraid
Copy link

I just ran into this issue too. Are there plans to implement this ?

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

No branches or pull requests

2 participants