-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
core-issueWP core/Gutenberg bugs affecting theme dev. Not theme-specific; needs workarounds or core fixes.WP core/Gutenberg bugs affecting theme dev. Not theme-specific; needs workarounds or core fixes.
Description
Summary
Remove button hover CSS workarounds from theme.json once WordPress 7.0 is released (April 9, 2026). The :hover property will be properly supported in block variations.
Background
Currently, button hover styles are implemented using the css property in theme.json because the :hover property is not supported in block variations. This will be fixed in WordPress 7.0.
Related
- WordPress 7.0 Release: April 9, 2026
- Gutenberg PR: [Button Block]: add support for pseudo elements for the block and its variations on theme.json WordPress/gutenberg#71418
Files to Update
theme.json- Remove hover CSS from:core/buttonsblock CSScore/button.variations.outlineCSScore/button.variations.ghostCSS
Action Required
After WordPress 7.0 release, migrate hover styles from css property to :hover property in variations.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
core-issueWP core/Gutenberg bugs affecting theme dev. Not theme-specific; needs workarounds or core fixes.WP core/Gutenberg bugs affecting theme dev. Not theme-specific; needs workarounds or core fixes.