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

USelect with placeholder display options with missleading color #1757

Open
KonradDRAST opened this issue May 7, 2024 · 4 comments
Open

USelect with placeholder display options with missleading color #1757

KonradDRAST opened this issue May 7, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@KonradDRAST
Copy link

Environment


  • Operating System: Windows_NT
  • Node Version: v20.10.0
  • Nuxt Version: 3.11.2
  • CLI Version: 3.11.1
  • Nitro Version: 2.9.6
  • Package Manager: yarn@4.1.1
  • Builder: -
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Version

2.8

Reproduction

visible even on the docs page

Description

When there is no value set for select, the placeholder is displayed (if set).
In such case, when options are displayed their labels are "muted" - looks like disabled ones.
image

Once any option is picked, their color change to "proper" one.
image

Additional context

No response

Logs

No response

@KonradDRAST KonradDRAST added the bug Something isn't working label May 7, 2024
Copy link
Collaborator

noook commented May 7, 2024

Can you still select those options ? I believe this is your system's behavior, it is probably consistent with any other regular select you could find.

The dropdown menu you see is not styled in anyway by Nuxt UI, it is plain HTML

@KonradDRAST
Copy link
Author

Yes, I can select it, and no, it's not like this on default selects, that's why I've spotted it.
It's caused by class text-gray-400 that is applied to "placeholder version", and is later changed to text-gray-900

So, it's styled by Nuxt UI.

@noxsii
Copy link

noxsii commented May 8, 2024

@KonradDRAST can u open a reproduction?

@KonradDRAST
Copy link
Author

@KonradDRAST can u open a reproduction?

As mentioned in my issue - this happens even on official docs page: https://ui.nuxt.com/components/select#placeholder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants