Skip to content

Commit

Permalink
Button: Try improving padding for icon + text buttons. (#46764)
Browse files Browse the repository at this point in the history
* Button: Try improving padding for icon + text buttons.

* Update changelog.
  • Loading branch information
jasmussen authored Jan 13, 2023
1 parent f46202a commit fae9da1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Enhancements

- `Dropdown`: deprecate `position` prop, use `popoverProps` instead ([46865](https://github.com/WordPress/gutenberg/pull/46865)).
- `Button`: improve padding for buttons with icon and text. ([46764](https://github.com/WordPress/gutenberg/pull/46764)).

### Internal

Expand Down
5 changes: 3 additions & 2 deletions packages/components/src/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -282,14 +282,15 @@

&.has-text {
justify-content: start;
padding-right: 12px;
}

&.has-text svg {
margin-right: 8px;
margin-right: $grid-unit-10;
}

&.has-text .dashicon {
margin-right: 10px;
margin-right: $grid-unit-10 + 2px;
}
}

Expand Down

0 comments on commit fae9da1

Please sign in to comment.