Skip to content

fix: allow user to input rgb values in color picker#1461

Open
d-rita wants to merge 2 commits intomasterfrom
DHIS2-21011/fix-picker-rgb-input
Open

fix: allow user to input rgb values in color picker#1461
d-rita wants to merge 2 commits intomasterfrom
DHIS2-21011/fix-picker-rgb-input

Conversation

@d-rita
Copy link
Contributor

@d-rita d-rita commented Mar 5, 2026

Fixes part of DHIS2-21011


Description
This PR allows users to edit the input fields for the hex codes as well as the RGB values without closing the color picker.


Screenshot

color-picker.mov

@dhis2-bot
Copy link
Contributor

dhis2-bot commented Mar 5, 2026

🚀 Deployed on https://pr-1461.settings.netlify.dhis2.org

@dhis2-bot dhis2-bot temporarily deployed to netlify March 5, 2026 18:09 Inactive
d-rita added 2 commits March 9, 2026 22:29
- stop closing the picker on every rgb change event
- rely on the backdrop click to close the picker after selecting/writing a color
@d-rita d-rita force-pushed the DHIS2-21011/fix-picker-rgb-input branch from 238280a to 2a2279f Compare March 9, 2026 20:33
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 9, 2026

@d-rita d-rita marked this pull request as ready for review March 9, 2026 20:38
@d-rita d-rita requested a review from KaiVandivier March 9, 2026 20:38
Copy link
Contributor

@KaiVandivier KaiVandivier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! 🙌

Were you able to try out the "white box with a red line through it" design for the "No color selected" box?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants