Skip to content

[BUG] CSS attribute selectors classnames aren't being generated as expected #1286

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

Closed
ghost opened this issue Apr 6, 2021 · 1 comment · Fixed by css-modules/postcss-modules-scope#30

Comments

@ghost
Copy link

ghost commented Apr 6, 2021

Let's suppose we have something like

.h-center-element-abs {
	/* boil */
}

.v-center-element-abs {
	/* boil */
}

.v-center-element-abs[class*=h-center-element-abs] {
	/* boil */
}

expected result

._39V2 {
	/* boil */
}
._3_71 {
	/* boil */
}
._3_71[class*=_39V2] {
	/* boil */
}

instead I am getting

._39V2 {
	/* boil */
}
._3_71 {
	/* boil */
}
._3_71[class*=h-center-element-abs] {
	/* boil */
}

If asked, I am hashing with 4 bytes of the class name hash result, but I guess it doesn't have relevance here.

@alexander-akait
Copy link
Member

Please use the issue template in the future, respect time of other developers

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

Successfully merging a pull request may close this issue.

1 participant