Commit Graph

20 Commits

Author SHA1 Message Date
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
Vincent Salucci 0b6e0b0e12
[Captcha] Implement captcha for 2fa (#2428)
* [Captcha] Implement captcha for 2fa

* Update jslib
2022-03-03 17:02:24 -06:00
Vincent Salucci 33314869f0
[Icons] Update Font Sheet (#2272)
* [Icons] Update Font Sheet

* Prettier updates

* Updated refresh -> generate

* Updated closed folder icon

* Reverted to using a base class

* Update jslib

* Removed unused import

* Updated eye/eye-slash icon references

* Update jslib

* Updating fallback image for cipher icon

* Update jslib

* Removed duplicate icon base class

* Update jslib

* Prettier

Co-authored-by: Hinton <oscar@oscarhinton.com>
2022-01-28 04:53:06 -06:00
Oscar Hinton 8fe821b9a3
Apply Prettier (#2238) 2021-12-21 15:43:35 +01:00
Patrick H. Lauke c8fc7ee6fc Add basic heading markup 2021-11-02 22:41:17 +00:00
Patrick H. Lauke 6b0167a098
Merge branch 'master' into patrickhlauke-a11y-patch2 2021-09-18 17:47:59 +01:00
Matt Gibson 4890ca3c51
Add iframe allow to initial load (#2005)
* Add iframe allow to initial load

Chrome seems to balk at this attribute being added after the fact. It
may be a race condition or an intentional block, but adding to the
template fixes our missing allow attribute problem.

* Update jslib
2021-08-13 09:23:36 -05:00
Patrick H. Lauke d528d72b4d Change links to buttons
- more semantically accurate, will expose these as buttons to assistive technologies
- note: while having block-level elements like `<div>` inside a `<button>` is an html validation error, it does not affect functionality as long as there's no more structure inside it
2021-07-31 20:50:46 +01:00
Oscar Hinton 786dd28a84
Add a button to prompt WebAuthn on FF and Safari (#1879) 2021-06-08 09:29:11 +02:00
Oscar Hinton e0f4386042
Add support for WebAuthn to browser extension (#1379) 2021-03-17 22:14:26 +01:00
Kyle Spearrin 60f6863e4f a11y work 2019-10-08 17:04:44 -04:00
Kyle Spearrin 0e798c610e safari 2fa page cleanup 2019-08-21 10:05:17 -04:00
Kyle Spearrin 44af1ccc45 format html files 2019-02-21 16:53:57 -05:00
Kyle Spearrin 6d381e0e34 dont show continue button on u2f 2018-07-30 21:46:03 -04:00
Kyle Spearrin bdcbe4ee00 center stuff 2018-07-24 17:13:39 -04:00
Kyle Spearrin 73013d51e0 input verbatim 2018-04-25 17:53:51 -04:00
Kyle Spearrin 10014c8b09 fix duo new window message padding 2018-04-14 13:36:51 -04:00
Kyle Spearrin 726a7f59ae remove unused i18n strings 2018-04-12 17:32:00 -04:00
Kyle Spearrin 2ad34c5119 replace tools with password generator 2018-04-10 23:03:29 -04:00
Kyle Spearrin 67ab9b1d3e move new app into popup folder 2018-04-10 21:54:20 -04:00