Make WordPress Core


Ignore:
Timestamp:
10/07/2026 02:46:53 PM (11 days ago)
Author:
afercia
Message:

Administration: Improve consistency of the disabled buttons styling.

A few buttons had the cursor: not-allowed; style applied, which has now been removed. This styling is unnecessary and only introduces inconsistency with other disabled buttons styling.

For the removed styles in colors/_mixins.scss it is also worth noting that a style related to interaction should not live in a file that contains mixins dedicated to colors.

  • Removes the cursor: not-allowed style from buttons mixins in colors/_mixins.scss.
  • Removes the remaining 3 occurrences for the classic 'Custom HTML' widget, the Theme / Plugin file editors and in the Customizer when reordering menus or widgets.

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

Props sainathpoojary, dhruvang21, afercia.
Fixes #66251.

File:
1 edited

Legend:

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

    r63966 r64229  
    25462546.reordering .add-new-menu-item {
    25472547        opacity: 0.2;
    2548         pointer-events: none;
    2549         cursor: not-allowed; /* doesn't work in conjunction with pointer-events */
     2548        pointer-events: none; /* Also resets the cursor style. */
    25502549}
    25512550
Note: See TracChangeset for help on using the changeset viewer.