Skip to content

Behavior for components with fitContent. #1304

Answered by GomezIvann
aidamag asked this question in Ideas
Discussion options

You must be logged in to vote

I think this depends on the component, let me explain myself:

  • Box and Alert are the easiest ones in my opinion. They should break on to the next line since they are regular containers used in specific situations. So, just changing fitContent's value to 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.
  • Regarding the button, I think it is behaving as expected. When the size is 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…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@aidamag
Comment options

Comment options

You must be logged in to vote
1 reply
@aidamag
Comment options

Answer selected by Jialecl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants