Skip to content

Commit a942bdf

Browse files
committed
Admin: Switch plugin card buttons to compact size.
Following the admin reskin, the larger buttons in plugin cards caused an existing potential for text overlap to happen more easily. Switching to compact size restores prior behavior. Props hiroshisato, audrasjb, huzaifaalmesbah, shailu25, joedolson. Fixes #64686. git-svn-id: https://develop.svn.wordpress.org/trunk@61729 602fd350-edb4-49c9-b593-d223f7449a82
1 parent c212684 commit a942bdf

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,7 @@ ul.cat-checklist input[name="post_category[]"]:indeterminate::before {
14241424
content: "\f463";
14251425
content: "\f463" / '';
14261426
display: inline-block;
1427-
font: normal 20px/1.9 dashicons; /* line-height 1.9 = 38px to match button */
1427+
font: normal 16px/1.875 dashicons; /* line-height 1.875 = 30px to match button */
14281428
margin: 0 5px 0 -2px;
14291429
-webkit-font-smoothing: antialiased;
14301430
-moz-osx-font-smoothing: grayscale;
@@ -1567,6 +1567,13 @@ div.action-links,
15671567
margin: 0; /* Override existing margins */
15681568
}
15691569

1570+
/* Use compact size for space-constrained plugin cards */
1571+
.plugin-action-buttons li .button {
1572+
min-height: 32px;
1573+
line-height: 2.30769231; /* 30px for 32px min-height */
1574+
padding: 0 12px;
1575+
}
1576+
15701577
.plugin-card h3 {
15711578
margin: 0 12px 12px 0;
15721579
font-size: 18px;

0 commit comments

Comments
 (0)