Administration: Align border-radius values with design system tokens#12139
Administration: Align border-radius values with design system tokens#12139Dervish12 wants to merge 1 commit into
Conversation
Replace non-standard border-radius values with their nearest design system equivalents as defined in _tokens.scss. The WordPress design system defines these border-radius tokens: - 1px (radius-xs) - 2px (radius-s) — buttons, inputs - 4px (radius-m) — focus rings - 8px (radius-l) — cards, dashboard widgets - 12px (radius-30) - 9999px (radius-full) — pills, avatars This changeset replaces values that fall outside this scale: - 3px → 2px (radius-s) in 10 locations across 4 files - 5px → 4px (radius-m) in 3 locations across 2 files - 9px → 8px (radius-l) in admin-menu.css notification badges - 10px → 8px (radius-l) in site-icon.css previews - 11px → 12px (radius-30) in list-tables.css comment badges 7 files changed, 16 replacements total. Props dervishov. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
Summary
Replace non-standard border-radius values across 7 admin CSS files with their nearest equivalents from the WordPress design system defined in
_tokens.scss.Trac ticket: https://core.trac.wordpress.org/ticket/65444
Problem
The WordPress design system (
_tokens.scss) defines a clear border-radius scale:1px,2px,4px,8px,12px,9999px. However, several admin CSS files still use legacy values (3px,5px,9px,10px,11px) that fall outside this scale, creating visual inconsistency.Changes
3px2pxradius-s5px4pxradius-m9px8pxradius-l10px8pxradius-l11px12pxradius-30Files changed
src/wp-admin/css/themes.css— 5 replacementssrc/wp-admin/css/list-tables.css— 4 replacementssrc/wp-admin/css/customize-controls.css— 3 replacementssrc/wp-admin/css/admin-menu.css— 1 replacementsrc/wp-admin/css/forms.css— 1 replacementsrc/wp-admin/css/nav-menus.css— 1 replacementsrc/wp-admin/css/site-icon.css— 1 replacementTest plan
npm run build:dev— builds successfullyThis Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.