Skip to content

Commit b5021ef

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. Props maccyd, hbhalodia, joedolson. Fixes #64269. Built from https://develop.svn.wordpress.org/trunk@61316 git-svn-id: https://core.svn.wordpress.org/trunk@60628 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent 5bb8dce commit b5021ef

5 files changed

Lines changed: 21 additions & 9 deletions

File tree

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,14 +1077,20 @@
10771077
width: 22px;
10781078
padding: 0;
10791079
background-color: #fff;
1080-
background-position: -96px 4px;
10811080
border-radius: 3px;
10821081
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
10831082
transition: none;
10841083
}
10851084

1086-
.wp-core-ui .attachment-close:hover,
1087-
.wp-core-ui .attachment-close:focus {
1085+
.wp-core-ui .attachment-close .media-modal-icon {
1086+
display: inline-block;
1087+
background-position: -96px 4px;
1088+
height: 22px;
1089+
width: 22px;
1090+
}
1091+
1092+
.wp-core-ui .attachment-close:hover .media-modal-icon,
1093+
.wp-core-ui .attachment-close:focus .media-modal-icon {
10881094
background-position: -36px 4px;
10891095
}
10901096

wp-includes/css/media-views-rtl.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wp-includes/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @global string $wp_version
1818
*/
19-
$wp_version = '7.0-alpha-61315';
19+
$wp_version = '7.0-alpha-61316';
2020

2121
/**
2222
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)