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

[Bug Report][3.7.9] VColorPicker - color format incorrectly inferred to HEX from string version of HSL #20944

Open
krausvo1 opened this issue Jan 30, 2025 · 0 comments

Comments

@krausvo1
Copy link

Environment

Vuetify Version: 3.7.9
Vue Version: 3.5.13
Browsers: Firefox 133.0
OS: Linux

Steps to reproduce

  1. Pass HSL color in string format to VColorPicker (e.g. 'hsl(300, 100%, 50%)')
  2. Use the picker to pick another color

Expected Behavior

Model is updated with color in HSL (object format, I suppose string is not supported as output)

Actual Behavior

Model is updated with color in HEX format

Reproduction Link

https://play.vuetifyjs.com/#...

Other comments

We use color picker to dynamically set Vuetify's theme colors. Our initial theme colors set via Vuetify plugin config are written in HSL string format. Some of our components expect theme colors to be specified in HSL string format, they don't work correctly with HEX format.

I suppose we'll need to change this behavior either way, unless VColorPicker is modified to support output in HSL string format, which I understand might be out of scope or even unnecessary. I guess I just find it strange that Vuetify theme colors can be written in HSL string format, but VColorPicker does not support it correctly.

@krausvo1 krausvo1 changed the title [Bug Report][3.7.9] VColorPicker - color format incorrectly inferred to hex from string version of HSL [Bug Report][3.7.9] VColorPicker - color format incorrectly inferred to HEX from string version of HSL Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant