Skip to content

Commit

Permalink
[Components - Placeholder]: Set fixed right margin for label's icon (#…
Browse files Browse the repository at this point in the history
…46918)

* [Components - Placeholder]: Fix right margin for dashicons

* add changelog

* use same `px` value for all cases
  • Loading branch information
ntsekouras authored Jan 5, 2023
1 parent 75ca356 commit f2963d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

- `Dashicon`: remove unnecessary type for `className` prop ([46849](https://github.com/WordPress/gutenberg/pull/46849)).

### Bug Fix

- `Placeholder`: set fixed right margin for label's icon ([46918](https://github.com/WordPress/gutenberg/pull/46918)).

## 23.1.0 (2023-01-02)

## 23.0.0 (2022-12-14)
Expand Down Expand Up @@ -76,6 +80,7 @@
- `TabPanel`: Add ability to set icon only tab buttons ([#45005](https://github.com/WordPress/gutenberg/pull/45005)).

### Internal

- `AnglePickerControl`: remove `:focus-visible' outline on `CircleOutlineWrapper` ([#45758](https://github.com/WordPress/gutenberg/pull/45758))

### Bug Fix
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/placeholder/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
> svg,
.dashicon,
.block-editor-block-icon {
margin-right: 1ch;
margin-right: $grid-unit-15;
fill: currentColor;
// Optimizate for high contrast modes.
// See also https://blogs.windows.com/msedgedev/2020/09/17/styling-for-windows-high-contrast-with-new-standards-for-forced-colors/.
Expand Down

0 comments on commit f2963d3

Please sign in to comment.