Allow disabling color picker #42344
Labels
*duplicate
Issue identified as a duplicate of another issue(s)
editor-color-picker
Editor color picker widget issues
feature-request
Request for new features or functionality
Use case: I'm writing an extension for a CSS preprocessor. As part of our syntax, we have imported variables. When those variables are color values, I present return a ColorInformation for them, so they get the color indicator. However, I would like to disable the color picker when hovering over the indicator, as users can't change the value of the variable.
I send an empty result for the color presentation request in this case, which prevents the color picker from changing the color, but I would like it not to open at all. Is it possible to make the color picker not open when the color presentation result is empty?
Good color picker (with presentation result, will change color on click):
Unwanted color picker (no presentation result, will not change value on click):
The text was updated successfully, but these errors were encountered: