Make WordPress Core

Changeset 61318


Ignore:
Timestamp:
11/28/2025 08:26:45 PM (2 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.

Reviewed by audrasjb.
Nerges [61316] to the 6.9 branch.

Props maccyd, hbhalodia, joedolson.
Fixes #64269.

Location:
branches/6.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.9

  • branches/6.9/src/wp-includes/css/media-views.css

    r60885 r61318  
    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.