Skip to content

Commit

Permalink
DropdownMenuV2: do not collapse suffix width (#57238)
Browse files Browse the repository at this point in the history
* DropdownMenuV2: do not collapse suffix width

* CHANGELOG
  • Loading branch information
ciampo committed Dec 20, 2023
1 parent a312c1b commit cf2950e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Expand Up @@ -13,6 +13,7 @@

### Enhancements

- `DropdownMenuV2`: do not collapse suffix width ([#57238](https://github.com/WordPress/gutenberg/pull/57238)).
- `DateTimePicker`: Adjustment of the dot position on DayButton and expansion of the button area. ([#55502](https://github.com/WordPress/gutenberg/pull/55502)).
- `Modal`: Improve application of body class names ([#55430](https://github.com/WordPress/gutenberg/pull/55430)).

Expand Down
5 changes: 3 additions & 2 deletions packages/components/src/dropdown-menu-v2-ariakit/styles.ts
Expand Up @@ -269,8 +269,9 @@ export const DropdownMenuItemChildrenWrapper = styled.div`
`;

export const ItemSuffixWrapper = styled.span`
flex: 0;
width: max-content;
flex: 0 1 fit-content;
min-width: 0;
width: fit-content;
display: flex;
align-items: center;
Expand Down

0 comments on commit cf2950e

Please sign in to comment.