Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button: Width should be dynamically determined depending on the text #62

Closed
edizcelik opened this issue Apr 6, 2021 · 0 comments
Closed
Assignees

Comments

@edizcelik
Copy link
Contributor

edizcelik commented Apr 6, 2021

We currently predefine the width of the buttons (i.e. setting the width as 120px with CSS), however, we should instead set padding of buttons and let the element decide what its width would be depending on the provided children to Button component and the defined paddings. When displaying the spinner, the button should stay at the same width as if the text was visible instead of shrinking its width down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants