Skip to content
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

Broken color picker in JSON strings #1730

Open
Kesuaheli opened this issue Jan 26, 2025 · 1 comment
Open

Broken color picker in JSON strings #1730

Kesuaheli opened this issue Jan 26, 2025 · 1 comment
Labels
🐛 bug Something isn't working

Comments

@Kesuaheli
Copy link

When using JSON Text Components in a string, the color gets escaped in \" like this:
\"color\": \"red\" or \"color\": \"#ff0000\"

But the color picker does not quite work that well with these escaped quotes:

Image

After changing the color in the color picker once, Spyglass breaks the JSON by

  1. deleting the " from the first \" (resulting in a \#)
  2. deleting the \ from the second \" (resulting in a ", which unexpectedly ends the JSON string)

Image

@Kesuaheli
Copy link
Author

Also: Is it known, that the color picker doesn't work at all when using color words like color: "red"?

@misode misode added the 🐛 bug Something isn't working label Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants