web.dev icon indicating copy to clipboard operation
web.dev copied to clipboard

Focus styles do not show in Glitch for Keyboard Access article

Open Amani-Maklad opened this issue 3 years ago • 3 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://web.dev/keyboard-access/
  2. Scroll down to Logical tab order
  3. See error in the example. which is the border color for the kiwi, peach and coconut buttons in both examples are in black which make the tab focus does not appear because the focus is in black too.
  4. I tried to open the same link in firefox, google chrome, google chrome incognito mode, edge, internet explorer and all show the same border style, which is black border and pressing tab button to switch between buttons does not appear because the foucs is in black color too.
  5. I am using:
    • Windows 10 Pro Version 21H2.
    • Google Chrome browser Version 105.0.5195.102 (Official Build) (64-bit).

Expected behavior A clear and concise description of what you expected to happen. I expexted to see where the focus should appear when pressing tab button to switch between the buttons.

Screenshots If applicable, add screenshots to help explain your problem.

Screenshot 2022-09-13 163248

Amani-Maklad avatar Sep 13 '22 14:09 Amani-Maklad

Did you click into the Glitch iframe before pressing tab? Otherwise this might be a Windows platform related problem, as the correct focus styles appear for me on macOS:

image

matthiasrohmer avatar Sep 15 '22 11:09 matthiasrohmer

Yes, I clicked into the iframe before pressing the tab. I opened the link in my macOS andit shows exactly like your screenshot. look like the page is using the default outline color which is black on windows and blue on macOS.

Capture

Amani-Maklad avatar Sep 15 '22 13:09 Amani-Maklad

Hah, that makes sense... We'll add an explicit focus color to accommodate Windows, thanks for reporting!

matthiasrohmer avatar Sep 15 '22 17:09 matthiasrohmer

Closing this issue since we are moving to a new platform and content on this site is now frozen. As this is about the site, then it shouldn’t be an issue after the move.

dstmarthe avatar Aug 31 '23 05:08 dstmarthe