-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Revert fix/slug-to-classname #32742
Revert fix/slug-to-classname #32742
Conversation
Size Change: -23 B (0%) Total Size: 1.04 MB
ℹ️ View Unchanged
|
getColorClassName( 'background', 'Light Purple veryDark' ) | ||
).toBe( 'has-Light-Purple-veryDark-background' ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about we retain this? I think it's a more powerful check than the other one.
Updated the tests instructions in the PR and manually tested them myself. It works. |
Tested ✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Thanks @nosolosw ❤️
Tested ✅ |
I see there's a test failure: "TypeWriter › should maintain caret position after scroll" that has been reported to fail in other PRs as well. I'd like to address it and help fixing that test but also need to merge this to release 10.8.2, so I'm going to go ahead and merge. |
Co-authored-by: Bernie Reiter <[email protected]>
Co-authored-by: Bernie Reiter <[email protected]>
Co-authored-by: Bernie Reiter <[email protected]>
This reverts #32352 that by trying to fix #32347 created issues #32719 and #32721
Third parties (such as Jetpack) rely on specific behaviours from lodash's
kebabCase
method (see the table at #32347). Because the generated classes are attached to the markup we can't really remove kebabCase as that's the source of the behaviour in use. It seems the way to fix this is by implementing the same behavior around numbers and numerals in the server.While we do that we can gain some time by reverting #32352
How to test
― Test 1
― Test 2
green
slug togreen2green
in thetheme.json
.has-green-2-green-color
.global-styles-inline-css
style tag. Verify thathas-green2green-color
,has-green2green-background-color
andhas-green2green-border-color
--wp--preset--color--green2green
.has-green2green*
classes, etc.