Best practice for sl-dropdown menu item text wrap #676
Answered
by
claviska
SabineWren
asked this question in
Help
-
Beta Was this translation helpful? Give feedback.
Answered by
claviska
Feb 15, 2022
Replies: 1 comment
-
Try targeting the menu item's label. sl-menu-item::part(label) {
width: max-content;
max-width: 400px;
white-space: normal;
} I think it's reasonable (and good UX) to provide a maximum width. The |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SabineWren
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try targeting the menu item's label.
Example
I think it's reasonable (and good UX) to provide a maximum width. The
max-content
handles the rest.