Skip to content

Commit

Permalink
Update has-text has-icon button spacing (#50277)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskoster authored May 4, 2023
1 parent ce8d9a2 commit e57b687
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
## Unreleased

- `CheckboxControl`, `CustomGradientPicker`, `FormToggle`, : Refactor and correct the focus style for consistency ([#50127](https://github.com/WordPress/gutenberg/pull/50127)).
- `Button`, update spacing values in `has-text has-icon` buttons. ([#50277](https://github.com/WordPress/gutenberg/pull/50277)).
- `Button`, remove custom padding applied to `tertiary` variant. ([#50276](https://github.com/WordPress/gutenberg/pull/50276)).

### Breaking Changes

- `onDragStart` in `<Draggable>` is now a synchronous function to allow setting additional data for `event.dataTransfer` ([#49673](https://github.com/WordPress/gutenberg/pull/49673)).


### Internal

- `NavigableContainer`: Convert to TypeScript ([#49377](https://github.com/WordPress/gutenberg/pull/49377)).
Expand Down
8 changes: 3 additions & 5 deletions packages/components/src/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,9 @@

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

&.has-text svg {
margin-right: $grid-unit-10;
padding-right: $grid-unit-15;
padding-left: $grid-unit-10;
gap: $grid-unit-05;
}

&.has-text .dashicon {
Expand Down

0 comments on commit e57b687

Please sign in to comment.