Make WordPress Core


Ignore:
Timestamp:
07/30/2026 01:57:41 PM (11 days ago)
Author:
afercia
Message:

Administration: Improve consistency of the focus style across the admin.

After the admin reskin in WordPress 7.0, the focus style for various elements in the admin was slightly inconsistent especially regarding the overall border plus box-shadow thickness.
This change aims to fix most of the cases found and it's a consistency improvement over what it's in WordPress 7.0.

Developed in https://github.com/WordPress/wordpress-develop/pull/12601

Props iamchitti, afercia.
Fixes #65645.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/forms.css

    r62838 r62942  
    659659        border-color: var(--wp-admin-theme-color);
    660660        border-radius: 2px;
    661         box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color);
     661        box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color);
    662662        /* Only visible in Windows High Contrast mode */
    663663        outline: 2px solid transparent;
     
    737737#pass1:focus,
    738738#pass1-text:focus {
    739         box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color);
     739        box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color);
     740        border-color: var(--wp-admin-theme-color, #3858e9);
    740741        /* Only visible in Windows High Contrast mode */
    741742        outline: 2px solid transparent;
Note: See TracChangeset for help on using the changeset viewer.