elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.82k stars 8.21k forks source link

[Lens] Series color picker clearing inconsistencies #196770

Open markov00 opened 1 week ago

markov00 commented 1 week ago

Kibana version: main,9.0, 8.x

Describe the bug:

The color picker tooltip says: Clear the custom color to return to "auto" mode Now there are 3 ways to clear that "custom" color that brings to different results and inconsistent states:

  1. keep pressing the delete button: this brings the visualization color back to its default, but the color picker will display the last "valid" hex color before the picker was completely cleared. Everything goes back to normal if you close the axis flyout.

https://github.com/user-attachments/assets/cd83dbf1-b968-4bb1-8d19-ec4b70146429

  1. select the full hex code input text and delete it: same results as above, the hex code just doesn't change from the last used

https://github.com/user-attachments/assets/3a1c9325-b786-45b6-8e06-ed8addbd2bec

  1. Click on the small x button on the right of the input field (that appears only if you have edited the current color). This deletes the input, leaving the input empty with a slashed white square instead of a default color square.

https://github.com/user-attachments/assets/ce7df051-647d-4cf8-83fa-b7da4749dc20

Expected behavior: The UX experience on clearing the custom color and resetting to the default one should be consistent. The visual state after clearing the input should always report the default color and should be synchronized with the current visualized color in the chart.

elasticmachine commented 1 week ago

Pinging @elastic/kibana-visualizations (Team:Visualizations)