Make WordPress Core

Changeset 61316


Ignore:
Timestamp:
11/28/2025 05:22:33 PM (8 weeks ago)
Author:
joedolson
Message:

Media: Fix 'remove' icon in Edit Gallery mode.

The structure change in [60806] effected the CSS for this icon. Adjust the CSS to target the new child container of the button.

Props maccyd, hbhalodia, joedolson.
Fixes #64269.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/css/media-views.css

    r60885 r61316  
    10771077    padding: 0;
    10781078    background-color: #fff;
    1079     background-position: -96px 4px;
    10801079    border-radius: 3px;
    10811080    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
     
    10831082}
    10841083
    1085 .wp-core-ui .attachment-close:hover,
    1086 .wp-core-ui .attachment-close:focus {
     1084.wp-core-ui .attachment-close .media-modal-icon {
     1085    display: inline-block;
     1086    background-position: -96px 4px;
     1087    height: 22px;
     1088    width: 22px;
     1089}
     1090
     1091.wp-core-ui .attachment-close:hover .media-modal-icon,
     1092.wp-core-ui .attachment-close:focus .media-modal-icon {
    10871093    background-position: -36px 4px;
    10881094}
Note: See TracChangeset for help on using the changeset viewer.