Button state styling missing from wp-element-button #49218
Labels
[Block] Buttons
Affects the Buttons Block
CSS Styling
Related to editor and front end styles, CSS-specific issues.
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
[Type] Bug
An existing feature does not function as intended
Description
When adding button element styles in theme.json, the state styles are not being applied correctly to
.wp-button-element
. The.wp-block-button__link
styles are added correctly:The expected CSS should be:
I have also tested other elements but it appears to only be happening with buttons.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Twenty Twenty-Three generated CSS:
Twenty Twenty-Three default button styling:
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: