Skip to content

Commit

Permalink
DropdownMenuV2: break menu item help text on multiple lines for bette…
Browse files Browse the repository at this point in the history
…r truncation (#63916)

* DropdownMenuV2: break text menu item help text on multiple lines for better truncation

* CHANGELOG

Co-authored-by: ciampo <mciampini@git.wordpress.org>
Co-authored-by: tyxla <tyxla@git.wordpress.org>
  • Loading branch information
3 people committed Jul 25, 2024
1 parent cdab045 commit 32838e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Internal

- `DropdownMenuV2`: break menu item help text on multiple lines for better truncation. ([#63916](https://github.com/WordPress/gutenberg/pull/63916)).

## 28.4.0 (2024-07-24)

### Deprecations
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/dropdown-menu-v2/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ export const DropdownMenuItemHelpText = styled( Truncate )`
font-size: ${ font( 'helpText.fontSize' ) };
line-height: 16px;
color: ${ COLORS.gray[ '700' ] };
word-break: break-all;
[data-active-item]:not( [data-focus-visible] ) *:not( ${ DropdownMenu } ) &,
[aria-disabled='true'] *:not( ${ DropdownMenu } ) & {
Expand Down

0 comments on commit 32838e8

Please sign in to comment.