ui icon indicating copy to clipboard operation
ui copied to clipboard

USelect with placeholder display options with missleading color

Open KonradDRAST opened this issue 9 months ago • 6 comments

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: [email protected]
  • 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 avatar May 07 '24 14:05 KonradDRAST

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

noook avatar May 07 '24 14:05 noook

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.

KonradDRAST avatar May 07 '24 15:05 KonradDRAST

@KonradDRAST can u open a reproduction?

noxsii avatar May 08 '24 13:05 noxsii

@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

KonradDRAST avatar May 08 '24 13:05 KonradDRAST

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jul 18 '24 11:07 github-actions[bot]

I am having the same issue, if I add a placeholder the enabled options become light gray and the disabled options are darker, once I select an option it sometimes fixes the colors. so to reproduce try to add a few disabled and enabled options.

farahats9 avatar Sep 10 '24 02:09 farahats9