-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Highlighting Text with a Mouse Drag Cause Text to Become Unreadable in High Contrast Mode #1742
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
Comments
Update: I found another text box with the same issue. Happens when renaming a sketch. 2021-01-25.21-30-32.mp4 |
Thanks for reporting! I think this is an operating system level setting. It looks different (as in, it's legible) on my Mac, or if I go on BrowserStack and try it on Windows. Are you able to change this in your Linux OS settings? |
@catarak I think you're right it does look like a os level problem. I did some research and it looks like it can still be set in css it just overrides the system default. I found this: https://www.w3docs.com/snippets/css/how-to-change-the-default-text-selection-color-with-css.html And did a simple test: 2021-02-01.16-44-57.mp4Might be worth adding to catch this use case. I don't know what unintended consequences it might have to add this in. If you want to close this issue that's fine. If you think it's worth changing I'd be happy to take a stab at it in the next two weeks. |
@violetcraze thank you for looking into this! I didn't realize you could change the selection text with CSS. I think it would make sense to choose a selection color for each theme that is WCAG AA compliant for light and dark and WCAG AAA for high contrast. |
Hey @catarak and @violetcraze, I would like to work on it. |
@MohdImran001 I don't mind if you work on this. |
Hey @catarak and @violetcraze, I have figured out some color combinations for this issue. They are compliant with the WCAG AA and WCAG AAA standards. I checked their WCAG compatibility using this website - https://accessible-colors.com/. For Light Theme - For Dark Theme - For High Contrast - Video Sample - 2021-02-10_13-01-16.mp4Before creating a PR I would love to know your opinions about these color combinations. |
@MohdImran001 thanks for working on this! I would suggest looking at the SCSS variables file, which lists all of the colors currently being used in all of the themes. I also think it makes sense to use one of the variations of gray that are used in the theme rather than strong colors like pink and yellow, as that's more common in the context of text highlight colors. |
Thanks for working on this everyone, I was just about to file an issue about this and found this wonderful one started by @violetcraze! 💖 |
Wow, great work @MohdImran001! I noticed that in high contrast mode the code itself is hard to see when highlighted, would it be possible to also adjust this as well? I'll wait to hear back before re-opening! |
@shiffman I think it would be possible! Because CodeMirror behind the scenes is using elements other than |
Thanks @shiffman for pointing out this problem. I will try to fix it also. |
I have opened #3396, which fixes this. |
Nature of issue?
Details about the bug:
Don't know if this actual qualifies as a bug but I found it somewhat annoying. And I think it makes it harder to use the UI when you can't see the selected text.
Bug might appear in other places or in other themes but I don't have the time at the moment to investigate more.
2021-01-25.21-06-43.mp4
The text was updated successfully, but these errors were encountered: