Switch from Chromium's color picker to a custom one in order to allow copying pasting values

Forenote: I picked Feature requests instead of Bug reports due to the issue not being caused by Obsidian directly.

Steps to reproduce

Interact with any color picker inside Obsidian and try to copy or paste the HEX or any numerical value.

Did you follow the troubleshooting guide? [Y]

Yes but they are not relevant as this is a Chromium problem and will always be there.

Expected result

To be able to copy or paste values into color input fields just like any other input field.

Above would be my request but since that is not possible, a more appropriate “expected result” would be:
To replace the default color picker with a better one and provide it for plugins as well.
Some plugins (such as Kanban) are likely aware of this issue any they seem to have deployed their own color picker as a solution similiar to one I am recommending.

Actual result

Copying fails, nothing is transferred into the clipboard.
Pasting fails, either nothing is pasted or selected string is deleted.

Environment

Environment info is not relevant to the report as this is a Chromium problem.


Additional information

This issue has been known since at least 2020, meaning it is 4 years old. We can safely assume it is unlikely to be solved anytime soon.

This issue impacts all color pickers inside Obsidian such as the accent color picker, canvas card color picker as well as the plugins that use the Obsidian provided color picker such as Iconize.

This problem has caused many people frusturation and still keeps doing so. You can see this from these forum posts:


I would really appreciate it if Obsidian team could snuck this into a patch or at least decide to work on it :slight_smile:

4 Likes

Thank you for creating this; Obsidian’s current colour picker is quite annoying. Who prefers typing in 3 different values instead of just pasting a hex code…

2 Likes

2020 called, they want their broken color picker back. Time to join the modern world, Obsidian!

1 Like