Opened 4 months ago
Closed 3 weeks ago
#63700 closed defect (bug) (fixed)
Backport Global Styles: Make Button element inherit all typography styles on the frontend
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.9 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Editor | Keywords: | has-patch has-test-info dev-reviewed commit gutenberg-merge |
| Focuses: | Cc: |
Description
Buttons with the wp-element-button class are missing key typography styles—font-style, text-transform, letter-spacing, and font-weight—on the frontend, even when these are defined at the root level in Global Styles.
Steps to Reproduce:
- Activate Emptytheme (or a theme where button styles aren't overridden).
- Go to Site Editor → Global Styles → Typography → Text → Update all styles.
- Insert a Search block.
- Check the frontend — the above styles are not applied to the button.
Expected:
Styles should match what’s shown in the editor.
Actual:
Styles like font-style and font-weight are missing on the frontend.
Change History (13)
#1
in reply to:
↑ description
@
4 months ago
This ticket was mentioned in PR #9268 on WordPress/wordpress-develop by @shreya0shrivastava.
4 months ago
#2
- Keywords has-patch added
Part of: https://github.com/WordPress/gutenberg/issues/60403
Backport for: https://github.com/WordPress/gutenberg/pull/70676
The provided code change updates the theme.json file to include additional typography styles for button elements. Specifically, it adds "fontStyle", "fontWeight", "letterSpacing", and "textTransform" properties with a value of "inherit". This change aims to address an issue where these styles were not being applied to button elements, despite being set at the root level via Global Styles. The issue was reproducible by updating typography styles in the Site Editor and inserting a Search block, which did not display the expected styles on the front end.
## Testing Instructions
- Go to the Site Editor > Global Styles > Typography > Text > Typography panel
- Update all styles.
- Insert a Search block in a post and check if it's style is getting inherited on the front end.
## Screenshots or screencast
### Before
### After
Trac ticket:
https://core.trac.wordpress.org/ticket/63700
#3
@
4 months ago
- Keywords dev-reviewed has-test-info added
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed
The patch is working fine, see this comment for testing instructions.
The Gutenberg PR has already been merged, and it would be great if the core patch is also committed by 6.9.
This ticket was mentioned in Slack in #core-test by sirlouen. View the logs.
3 months ago
@getsyash commented on PR #9268:
3 months ago
#8
## Test Report
### Description
This report validates whether the indicated patch works as expected.
PR tested: https://github.com/WordPress/wordpress-develop/pull/9268
The patch updates the theme.json file to include additional typography styles (fontStyle, fontWeight, letterSpacing, textTransform) for button elements, all set to "inherit". This ensures buttons correctly inherit typography settings applied globally via Site Editor.
### Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.29
- Server: nginx/1.29.0
- Database: mysqli (Server: 8.4.6 / Client: mysqlnd 8.2.29)
- Browser: Chrome 138.0.0.0
- OS: Windows 10/11
- Theme: Twenty Twenty-Five 1.3
- MU Plugins: None activated
- Plugins:
- Test Reports 1.2.0
### Actual Results
- Before patch:
- After patch:
✅ Issue resolved. Buttons now correctly inherit all specified typography settings from the root level.
### Additional Notes
- Verified using the Search block as reproduction example.
- No regressions or unexpected side effects observed.
#10
@
3 months ago
Test Report
Description
This report validates whether the indicated patch works as expected.
Patch tested: https://github.com/WordPress/wordpress-develop/pull/9268
Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.29
- Server: nginx/1.29.0
- Database: mysqli (Server: 8.4.6 / Client: mysqlnd 8.2.29)
- Browser: Chrome 139.0.0.0
- OS: Linux
- Theme: A Minimum Theme 1.0
- MU Plugins: None activated
- Plugins:
- Test Reports 1.2.0
Actual Results
- ✅ Issue resolved with patch.
Additional Notes
- Tested by creating a custom FSE theme with minimum files required to activate.


Replying to shreya0shrivastava:
Related Gutenburg issue: https://github.com/WordPress/gutenberg/issues/60403