Behavior for components with fitContent. #1304
-
Beta Was this translation helpful? Give feedback.
Answered by
GomezIvann
Sep 27, 2022
Replies: 2 comments 2 replies
-
In my opinion components with a defined height should have an ellipsis (for example the dropdown trigger) while others should jump to the next line. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I think this depends on the component, let me explain myself:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Jialecl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think this depends on the component, let me explain myself:
fit-content
is enough. The ellipsis is a design choice and as far as I know, fit-content should refer to the children's content.fit-content
it should adapt the width to the label length no matter overflowing. If you read the MDN definition of fit-content it says that when a property has this value, the size goes until max-content, but never more than max-content. E…