Global Styles: Elements: Link style rules are being applied to buttons #42055
Labels
[Block] Buttons
Affects the Buttons Block
CSS Styling
Related to editor and front end styles, CSS-specific issues.
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
[Type] Bug
An existing feature does not function as intended
Description
Link rules that are set via theme.json also bleed into button elements on the front end of the site. To overcome this I think we might need to add
:not(.wp-element-button)
to the link element selector.Step-by-step reproduction instructions
elements
Screenshots, screen recording, code snippet
Environment info
No response
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: