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

Avoid invalid CSS generation for styles using vendor pseudo-elements #120

Merged
merged 1 commit into from May 8, 2024

Conversation

m-akinc
Copy link
Contributor

@m-akinc m-akinc commented May 7, 2024

Previously we were only handling the ::-webkit-scrollbar-thumb and ::-webkit-slider-thumb vendor pseudo-elements. This change generalizes the code to handle any vendor-specific pseudo-elements (i.e. ::-webkit-*, ::-moz-*, and ::-ms-*) the same way. Apparently there are also some old, pre-Webkit Opera CSS elements (starting with -o-), but I'm not sure if there are any such pseudo-elements. In any case, it is unlikely anyone is using them, if there are.

Made sure the unit tests cover all these patterns.

@ghengeveld
Copy link
Member

Yeah, I think it's a good improvement to generalize things. Opera isn't among Storybook's nor Chromatic's supported browsers, so I consider that out of scope.

@ghengeveld ghengeveld added minor Increment the minor version when merged release Create a `latest` release when merged labels May 8, 2024
@ghengeveld ghengeveld added patch Increment the patch version when merged and removed minor Increment the minor version when merged labels May 8, 2024
@ghengeveld ghengeveld merged commit 1b48c82 into chromaui:main May 8, 2024
4 of 5 checks passed
Copy link

github-actions bot commented May 8, 2024

🚀 PR was released in v3.1.1 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged release Create a `latest` release when merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants