Make WordPress Core


Ignore:
Timestamp:
07/30/2026 01:57:41 PM (10 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-includes/css/media-views.css

    r62940 r62942  
    137137.media-frame select:focus {
    138138        border-color: var(--wp-admin-theme-color, #3858e9);
    139         /* Expand border by 0.5px for total 1.5px effect */
    140         box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color, #3858e9);
     139        box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
    141140        outline: 2px solid transparent;
    142141}
Note: See TracChangeset for help on using the changeset viewer.