Global Styles: Button element should inherit all typography styles on the frontend #60403
Labels
[Feature] Typography
Font and typography-related issues and PRs
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
Found in this comment
Button elements, i.e. elements with the
wp-element-button
class, inherit some typography styles by default. However, I realized that we are missing some styles that we should inherit:For example, update all typography styles at the root level via the Global Styles and insert a Search block.
Expected (Editor)
If you're using Emptytheme, you'll see something like this in the editor, which is what you'd expect. This is because the button is a
div
element.Not Expected (Frontend)
On the front end, you can see that the following styles are not applied to the button.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
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: