Skip to content

Commit

Permalink
FormTokenField: Fix token overflow when moving cursor left or right (#…
Browse files Browse the repository at this point in the history
…52662)

* FormTokenField: Fix token overflow when moving cursor left or right

* Update Changelog

* Use mixin
  • Loading branch information
t-hamano committed Jul 18, 2023
1 parent 5894190 commit 643b7b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- `Popover`: Pin `react-dropdown-menu` version to avoid breaking changes in dependency updates. ([#52356](https://github.com/WordPress/gutenberg/pull/52356)).
- `Item`: Unify focus style and add default font styles. ([#52495](https://github.com/WordPress/gutenberg/pull/52495)).
- `Toolbar`: Fix toolbar items not being tabbable on the first render. ([#52613](https://github.com/WordPress/gutenberg/pull/52613))
- `FormTokenField`: Fix token overflow when moving cursor left or right. ([#52662](https://github.com/WordPress/gutenberg/pull/52662))

## 25.3.0 (2023-07-05)

Expand Down
2 changes: 2 additions & 0 deletions packages/components/src/form-token-field/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { css } from '@emotion/react';
*/
import { Flex } from '../flex';
import { space } from '../ui/utils/space';
import { boxSizingReset } from '../utils';

type TokensAndInputWrapperProps = {
__next40pxDefaultSize: boolean;
Expand All @@ -27,6 +28,7 @@ const deprecatedPaddings = ( {

export const TokensAndInputWrapperFlex = styled( Flex )`
padding: 7px;
${ boxSizingReset }
${ deprecatedPaddings }
`;

1 comment on commit 643b7b8

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 643b7b8.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5590619344
📝 Reported issues:

Please sign in to comment.