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 Component does not work correctly on mobile devices and in certain cases it does not display well on desktop. #544

Closed
Mateozmaldonado17 opened this issue Sep 27, 2021 · 3 comments
Assignees
Labels
bug Things that aren't working right in the library.

Comments

@Mateozmaldonado17
Copy link

Describe the bug

When I click on a select this on a cell phone / desktop it completely exits the screen and does not have a defined overflow, also on a cell phone it does not show the NATIVE List.

To Reproduce

Steps to reproduce the behavior:

  1. Create some native component and put many menu-items on it.
  2. Open it from a computer and check that its height goes off the screen.
  3. Open it on a cell phone and you will see that it leaves the screen and does not show the native list of the operating systems either.

Screenshots


61eda888-ed1f-47ab-8879-5af7e12affe3
b632a995-3e36-42bb-9c06-ba647fbb023d

@Mateozmaldonado17 Mateozmaldonado17 added the bug Things that aren't working right in the library. label Sep 27, 2021
@claviska
Copy link
Member

When I click on a select this on a cell phone / desktop it completely exits the screen and does not have a defined overflow

Good catch. I'm surprised this hasn't come up before.

also on a cell phone it does not show the NATIVE List.

This is by design. Select controls allow for rich content in menu items (e.g. prefixes, suffixes, arbitrary HTML, etc.) so showing a system control on certain devices won't always convey the same information to the user.

However, you can still use <select> should you prefer that functionality.

@Mateozmaldonado17
Copy link
Author

Buddy and how do I get the same shoelance design?

@claviska
Copy link
Member

You can use the design tokens to write custom styles that will stay consistent with your theme.

https://codepen.io/claviska/pen/WNOLLWm?editors=0100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Things that aren't working right in the library.
Projects
None yet
Development

No branches or pull requests

2 participants