Skip to content

Commit cbd1e48

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/branches/6.9@61318 602fd350-edb4-49c9-b593-d223f7449a82
1 parent e97de59 commit cbd1e48

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/wp-includes/css/media-views.css

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,14 +1076,20 @@
10761076
width: 22px;
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);
10821081
transition: none;
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
}
10891095

0 commit comments

Comments
 (0)