Skip to content

Commit

Permalink
Try: Align widget sidebar button. (#32738)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen authored Jun 18, 2021
1 parent 1612c58 commit 28fcd95
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/components/src/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,17 @@
white-space: nowrap;
color: var(--wp-admin-theme-color);
background: transparent;
padding: 6px; // This reduces the horizontal padding on tertiary/text buttons, so as to space them optically.
padding: $grid-unit-15 / 2; // This reduces the horizontal padding on tertiary/text buttons, so as to space them optically.

.dashicon {
display: inline-block;
flex: 0 0 auto;
}

// Pull left if the tertiary button stands alone after a description, so as to vertically align with items above.
p + & {
margin-left: -($grid-unit-15 / 2);
}
}

/**
Expand Down

0 comments on commit 28fcd95

Please sign in to comment.