Skip to content

Commit

Permalink
Update compact search control metrics (#54663)
Browse files Browse the repository at this point in the history
* Update compact search control metrics

* Tidy up

* Update changelog

* Update changelog
  • Loading branch information
jameskoster committed Sep 21, 2023
1 parent 191fd0f commit 0e34475
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/components/CHANGELOG.md
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Enhancements

- `SearchControl`: polish metrics for `compact` size variant ([#54663](https://github.com/WordPress/gutenberg/pull/54663)).

### Bug Fix

- `Placeholder`: Improved DOM structure and screen reader announcements ([#45801](https://github.com/WordPress/gutenberg/pull/45801)).
Expand Down
6 changes: 6 additions & 0 deletions packages/components/src/search-control/style.scss
Expand Up @@ -43,6 +43,8 @@

&.is-size-compact input[type="search"].components-search-control__input {
height: $grid-unit-40;
padding-left: $grid-unit-10;
padding-right: $grid-unit-40;
}

}
Expand All @@ -58,6 +60,10 @@
justify-content: center;

width: $icon-size;

.is-size-compact & {
right: $grid-unit-05;
}
}

.components-search-control__input-wrapper {
Expand Down

0 comments on commit 0e34475

Please sign in to comment.