Skip to content

Commit

Permalink
FormTokenField: Added Padding to resolve close button overlap issue (#…
Browse files Browse the repository at this point in the history
…41556)

* Added Padding to resolve close button overlap issue

* Updated Padding to resolve close button overlap issue

* Updated Changelog
  • Loading branch information
akasunil authored Jun 9, 2022
1 parent e7be821 commit d56ade5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- `Tooltip`: Opt in to `__unstableShift` to ensure that the Tooltip is always within the viewport. ([#41524](https://github.com/WordPress/gutenberg/pull/41524))
- `FormTokenField`: Do not suggest the selected one even if `{ value: string }` is passed ([#41216](https://github.com/WordPress/gutenberg/pull/41216)).
- `CustomGradientBar`: Fix insertion and control point positioning to more closely follow cursor. ([#41492](https://github.com/WordPress/gutenberg/pull/41492))
- `FormTokenField`: Added Padding to resolve close button overlap issue ([#41556](https://github.com/WordPress/gutenberg/pull/41556)).

### Enhancements

Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/form-token-field/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@

&.is-borderless {
position: relative;
padding: 0 16px 0 0;
padding: 0 24px 0 0;

.components-form-token-field__token-text {
background: transparent;
Expand All @@ -107,6 +107,7 @@
position: absolute;
top: 1px;
right: 0;
padding: 0;
}

&.is-success {
Expand Down

0 comments on commit d56ade5

Please sign in to comment.