Skip to content

Remove button hover CSS from theme.json when WordPress 7.0 is released #5

@hchouhan

Description

@hchouhan

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

Files to Update

  • theme.json - Remove hover CSS from:
    • core/buttons block CSS
    • core/button.variations.outline CSS
    • core/button.variations.ghost CSS

Action Required

After WordPress 7.0 release, migrate hover styles from css property to :hover property in variations.

Metadata

Metadata

Assignees

Labels

core-issueWP core/Gutenberg bugs affecting theme dev. Not theme-specific; needs workarounds or core fixes.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions