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

Select min-width #2170

Closed
Nosfistis opened this issue Mar 23, 2021 · 0 comments · Fixed by #2670
Closed

Select min-width #2170

Nosfistis opened this issue Mar 23, 2021 · 0 comments · Fixed by #2670
Assignees
Labels
feature request User requests a new feature select
Milestone

Comments

@Nosfistis
Copy link

Related component

Select

Context

The select component's width is determined by the max width of its options, as per browser behavior. However, the select box does not specify a min-width, which means that selects with no options, or options with a few characters of text do not appear well.

εικόνα

This is particularly common in JS frameworks that might load the options array lazily.

Alternatives

We are enforcing a min-width of 5 characters to mitigate for such cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request User requests a new feature select
Projects
Development

Successfully merging a pull request may close this issue.

5 participants