Skip to content

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

Closed
duskvirkus opened this issue Jan 26, 2021 · 13 comments · Fixed by #1771 or #3396
Closed
Labels
Area:Accessibility Category for accessibility related features and bugs Bug Error or unexpected behaviors Priority:Medium Moderately important, should be completed in a fair timeframe

Comments

@duskvirkus
Copy link

Nature of issue?

  • Found a bug

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.

  • Web browser and version: Firefox 84.0.2 (64-bit)
  • Operating System: Linux - OS: Zorin 15 bionic - Kernel: x86_64 Linux 5.4.0-62-generic
  • Steps to reproduce this bug:
  1. Login to web editor and set to high contrast theme.
  2. Go to file > open > collections > create collection
  3. When the dialog opens use the mouse to highlight the collection name.
2021-01-25.21-06-43.mp4
@duskvirkus
Copy link
Author

Update: I found another text box with the same issue. Happens when renaming a sketch.

2021-01-25.21-30-32.mp4

@catarak
Copy link
Member

catarak commented Jan 29, 2021

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?

@duskvirkus
Copy link
Author

@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.mp4

Might 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.

@catarak
Copy link
Member

catarak commented Feb 2, 2021

@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.

@catarak catarak added Priority:Medium Moderately important, should be completed in a fair timeframe type:bug labels Feb 2, 2021
@MohdImran001
Copy link
Contributor

Hey @catarak and @violetcraze, I would like to work on it.

@duskvirkus
Copy link
Author

@MohdImran001 I don't mind if you work on this.

@MohdImran001
Copy link
Contributor

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 -
text color - #fff
background - #E81351

For Dark Theme -
text color - #000
background - #fff

For High Contrast -
text color - #333333
background - #F5DC23

Video Sample -

2021-02-10_13-01-16.mp4

Before creating a PR I would love to know your opinions about these color combinations.

@catarak
Copy link
Member

catarak commented Feb 12, 2021

@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.

@shiffman
Copy link
Member

Thanks for working on this everyone, I was just about to file an issue about this and found this wonderful one started by @violetcraze! 💖

@shiffman
Copy link
Member

shiffman commented Mar 3, 2021

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?

Screen Shot 2021-03-03 at 10 34 56 AM

I'll wait to hear back before re-opening!

@catarak
Copy link
Member

catarak commented Mar 3, 2021

@shiffman I think it would be possible! Because CodeMirror behind the scenes is using elements other than <input> or <textarea>, I believe it would be a matter of configuring CodeMirror or adding the right CSS selector.

@catarak catarak reopened this Mar 3, 2021
@MohdImran001
Copy link
Contributor

Thanks @shiffman for pointing out this problem. I will try to fix it also.

@raclim raclim added the Area:Accessibility Category for accessibility related features and bugs label Oct 12, 2022
@raclim raclim added Bug Error or unexpected behaviors and removed Type:Bug labels Mar 19, 2024
@dipamsen
Copy link
Contributor

I have opened #3396, which fixes this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:Accessibility Category for accessibility related features and bugs Bug Error or unexpected behaviors Priority:Medium Moderately important, should be completed in a fair timeframe
Projects
None yet
6 participants