Skip to content

Badge width #2183

Answered by gloriliale
pguptaDS asked this question in Q&A
Feb 3, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @pguptaDS! One of the main reasons we do want Badge to size itself around its contents is for internationalization. That way, if the content changes width bc of a language change, the component does the same. If there were a set width here, there's a higher chance of something not fitting, or even breaking in the same situation.

The look of it right aligned looks good from our end, but if you could also try to center the badge in the cell, which might lean it closer to the look you were aiming for.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by gloriliale
Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants