-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
FeaturePanel: Highlight colours #591
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🔍 Existing Issues For ReviewYour pull request is modifying functions with the following pre-existing issues: 📄 File: src/components/FeaturePanel/Properties/renderValue.tsx
📄 File: src/components/SearchBox/options/openstreetmap.tsx (Click to Expand)
Did you find this useful? React with a 👍 or 👎 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm really unsure about showing the hex code after a word.
I would suggest leaving only the human readable color label and not adding hex.
Is it better to use a background color like in this pr or just a small colored space like osm.org?
Both is fine, the box like on osm.org is maybe better, because you don't have to change text color to make it readable + it doesnt' burn too much people's eyes eg in dark mode 🙂
I think it is preferred to show the values as they are in osm. But if you want it would be easy to convert the hex codes to human readable color names as I have developed a library for that.
I think it is most useful to show the value stored in OSM. I don't think it is worth it to transform hex to human readable label (+all the translations). The color is visible near and everyone with right sight would see it and know the name of the color 🙂
And last but not least, the color tag is not one of the most important in OSM. I prefer having as little code as possible to make it usable, but not too smart. (As always I am open to discussion)
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
Example: https://osmapp.org/relation/14995860
Description
Highlight colors by providing a background color for the colour tag.
Design choices