accessibility-insights-web icon indicating copy to clipboard operation
accessibility-insights-web copied to clipboard

Bug: Kebab menu hover state is bad in Win10 HC modes

Open DaveTryon opened this issue 2 years ago • 1 comments

Describe the bug

The kebab menu produces unfortunately colors on hover state in Windows HC modes:

HC Theme Hover? Image
HC1 No image
HC1 Yes image
HC2 No image
HC2 Yes image
HC Black No image
HC Black Yes image
HC White No image
HC White Yes image

There is no change in mouse cursor (it's already a hand because the kebab menu is hosted by a card that is already clickable). The only visible change on hover is the change in the text color.

To Reproduce Steps to reproduce the behavior:

  1. Run on Win10 with High Contrast enabled
  2. Run automated checks on https://www.washington.edu/accesscomputing/AU/before.html
  3. In automated checks view, hover over the kebab menu
  4. Look at the colors

CodePen repro example

Expected behavior

There should be a clear visual indicator of the hover, and simply changing the text color doesn't provide that. We're following the FluentUI guidance of changing just the text color, but that guidance assumes that the cursor will also change on hover. In our scenario, the cursor remains unchanged, so our experience isn't great. We could almost call this good enough if the text color had a 3:1 contrast ratio in all HC modes, but the HC2 contrast ratio is too low when compared to the window color. That's not surprising, since the selected text color (what the browser uses for the text) is designed to be contrasted against the text color, not the window color.

Looking at Windows apps in HC modes, 2 common practices emerge to get a clear hover indicator in HC modes. Either of the following strategies would work:

  1. Include a border around the button being hovered in HC mode. This is how some command bars show hover.
  2. Set both the foreground and background color on hover in HC mode. This is how most Win32 controls show hover.

Screenshots

Context (please complete the following information)

  • OS Name & Version: Win10 21H2
  • AI-Web Version & Environment: 2.34.1 Insider
  • Browser Version: Chrome 105.0.5195.102
  • Target Page: https://www.washington.edu/accesscomputing/AU/before.html

Are you willing to submit a PR?

Did you search for similar existing issues?

Additional context

DaveTryon avatar Sep 08 '22 16:09 DaveTryon

This issue has been marked as ready for team triage; we will triage it in our weekly review and update the issue. Thank you for contributing to Accessibility Insights!

ghost avatar Sep 08 '22 17:09 ghost

Confirmed in release Canary 2023.5.11.1817

DaveTryon avatar May 12 '23 17:05 DaveTryon