-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Button: Add support for :hover in variation theme.json #55359
Comments
+1 in getting this into theme.json and also in Global Styles |
+1 hover states in theme.json and global styles would be welcomed! |
Also related #51337 and #64362 and discussed in #core dev chat today. Seems to becoming a consensus that at minimum we should expose some APIs to allow developers to implement better controls in the Elements. This would allow the flexibility to create states or create more flexible elements as needed. |
The related PR: #67541 makes some initial progress on this. |
This is unrelated to the stylebook, and it is unrelated to the type of elements available. Elements and variations can both be used under But the following is also problematic because the button element is not part of the button block. And with this, it would be unclear what to apply the hover on: |
I expected to be able to manipulate the hover state of variations from theme.json. I can define the other default state attributes, but hover is not supported. Ran into this while exploring adding more variety to the buttons in TT4 theme variations: WordPress/twentytwentyfour#646
Related to #49716.
The text was updated successfully, but these errors were encountered: