Skip to content

Commit 25c9991

Browse files
committed
Administration: Fix plugin and theme installer buttons.
Plugin and theme installer buttons load a dashicon during their updating and updated states. These dashicons were sized to large buttons, and caused a shift in alignment after the switch to compact buttons. Update CSS to prevent shifts in size and alignment for installer buttons. Props mohitbsf, peterwilsoncc, adnanhyder, huzaifaalmesbah, noruzzaman, ravichudasama01, shailu25, r1k0, joedolson. Fixes #64687. git-svn-id: https://develop.svn.wordpress.org/trunk@61741 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 2da82c9 commit 25c9991

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

src/wp-admin/css/list-tables.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,6 +1452,14 @@ ul.cat-checklist input[name="post_category[]"]:indeterminate::before {
14521452
content: "\f147" / '';
14531453
}
14541454

1455+
.plugin-card .updated-message:before,
1456+
.plugin-card .updating-message:before {
1457+
line-height: 1;
1458+
position: relative;
1459+
top: -2px;
1460+
vertical-align: middle;
1461+
}
1462+
14551463
.plugin-install-php #the-list {
14561464
display: flex;
14571465
flex-wrap: wrap;

src/wp-admin/css/themes.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ body.js .theme-browser.search-loading {
114114
}
115115

116116
/* Use compact size for space-constrained theme cards */
117+
.theme-browser .theme .theme-actions .button.updated-message,
118+
.theme-browser .theme .theme-actions .button.updating-message,
117119
.theme-browser .theme .theme-actions .button {
118120
float: none;
119121
margin-left: 3px;
@@ -122,6 +124,14 @@ body.js .theme-browser.search-loading {
122124
padding: 0 12px;
123125
}
124126

127+
.theme-browser .theme .theme-actions .button.updated-message::before,
128+
.theme-browser .theme .theme-actions .button.updating-message::before {
129+
line-height: 1;
130+
vertical-align: text-bottom;
131+
position: relative;
132+
top: 2px;
133+
}
134+
125135
/* Secondary buttons need white background for visibility on semi-transparent overlay */
126136
.theme-browser .theme .theme-actions .button:not(.button-primary) {
127137
background: #fff;

0 commit comments

Comments
 (0)