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

Local CSS variables not working in nested rules #854

Open
Niznikr opened this issue Nov 14, 2024 · 0 comments
Open

Local CSS variables not working in nested rules #854

Niznikr opened this issue Nov 14, 2024 · 0 comments

Comments

@Niznikr
Copy link

Niznikr commented Nov 14, 2024

In this example, the background-color does not pull in the local var. Putting it up into the class above it works correctly. Is this a known limitation of local vars?

.default {
	align-items: flex-start;
	padding: var(--lp-spacing-400 from './vars.module.css');
	border-style: solid;
	border-width: 1px;

	&.info {
		background-color: var(--lp-color-blue-500 from './vars.module.css');
		border-color: var(--lp-color-border-feedback-info);
	}
}
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

1 participant