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

Improve accessibility in the Browser Assistant popup (TAB key) #98

Open
contribucious opened this issue Apr 8, 2023 · 2 comments
Open
Assignees

Comments

@contribucious
Copy link

contribucious commented Apr 8, 2023

πŸ’» Browser Assistant 1.3.32 beta on Firefox 111.0.1.

πŸ‘‹ Steps to reproduce

  1. Go to either http://example.org or https://example.org;
  2. Open the Browser Assistant popup;
  3. Press TAB multiple times.

Actual behavior

  • Correct on actions β€” focus style is different;
  • IMHO, not correct on the toggle switch β€” focus style is not different.

Expected behavior

See this screenshot for a possible adequate focus style regarding the latter.

πŸ‘οΈ Like so we can see we are on it, just like what the AdGuard Browser extension does β€” or Firefox does.

@contribucious
Copy link
Author

contribucious commented Apr 8, 2023

On the button itself in case it is focused (gray as an example only):

@contribucious
Copy link
Author

contribucious commented Apr 8, 2023

πŸš€ Going further …

The situation when using the High contrast mode of Windows 10 can also clearly be improved IMHO.

πŸŽ₯ View video (0:45)
Carnac_0pJboDR3LV.mp4

↬ As you can see, AdGuard Browser extension is quite good, unlike AdGuard Browser Assistant (toggle switches not visible β€” though both functional β€”, focus on the action entries not visible when using the TAB keyΒΉ, …). ☺️
Β 


View dev notes … Β 

ΒΉ Easily fixable though, using the outline transparent trick (explained in text and in a short video):

Theme all normally (like currently + fix the toggle switches focus style) and simply add either:

  • *[tabindex]:focus { outline: transparent dotted 2px; }
    β†ͺ️ To have this: Edge video result β€” with the default high-contrasted theme.

  • *[tabindex]:focus { outline: transparent solid 2px; }
    β†ͺ️ To have that: Edge video result β€” with the same theme too (user's color preferences take precedence for a11y).

πŸ’‘ Note that with this system, if the "high contrast mode" is not in use, nothing is altered (see the Edge video result). βœ”οΈ
Unlike if you choose to use globally "gray" instead of "transparent" (see this video then).
πŸ’‘ You may want to use :focus-visible instead though, to theme only for keyboard (TAB) and not mouse (click).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants