bitwarden-estensione-browser/src/popup/scss
Patrick H. Lauke 7b12868c70
[PS-497] Change `<content>` to `<main>`, make it explicitly non-focusable (#2245)
* Make <content> element explicitly non-focusable

Some browsers (Firefox, upcoming versions of Chrome https://bugs.chromium.org/p/chromium/issues/detail?id=585413) make containers with `overflow: auto` / `overflow: scroll` (and the `-x` / `-y` variants) keyboard-focusable. This leads to a very awkward experience for assistive technology users navigating through the extension window, as for every view, the entire `<content>` container receives focus (and screen readers try to announce all its content in one go) before you reach the actual first control. To counteract this behaviour, this adds an explicit `tabindex="-1"` to these elements.

* Change `<content>` to `<main>`

More semantically accurate. See https://github.com/bitwarden/browser/pull/2245#issuecomment-1104553312

* Update scss to target `main` instead of `content`

* Change the previously existing `<main>` to generic `<div>`, tweak styles accordingly

Can't have two separate `<main>` elements, especially not nested ones. The original `<main>` was really just a handy wrapper for the component, but semantically should be neutral
2022-04-29 10:06:33 +10:00
..
base.scss [PS-497] Change `<content>` to `<main>`, make it explicitly non-focusable (#2245) 2022-04-29 10:06:33 +10:00
box.scss [PS-329] A11y: make view, copy, etc controls for ciphers/items keyboard focusable/operable, add screen reader improvements (#2507) 2022-04-28 18:24:13 +02:00
buttons.scss Apply Prettier (#2238) 2021-12-21 15:43:35 +01:00
environment.scss [Icons] Update Font Sheet (#2272) 2022-01-28 04:53:06 -06:00
grid.scss Apply Prettier (#2238) 2021-12-21 15:43:35 +01:00
misc.scss feat: add hidden char count toggle (#1780) 2022-02-23 21:11:09 -06:00
modal.scss [Icons] Update Font Sheet (#2272) 2022-01-28 04:53:06 -06:00
pages.scss [PS-497] Change `<content>` to `<main>`, make it explicitly non-focusable (#2245) 2022-04-29 10:06:33 +10:00
plugins.scss Add support for no intrusive biometric (#2431) 2022-03-15 13:13:39 +01:00
popup.scss [Icons] Update Font Sheet (#2272) 2022-01-28 04:53:06 -06:00
variables.scss [Icons] Update Font Sheet (#2272) 2022-01-28 04:53:06 -06:00