Commit Graph

32 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
Patrick H. Lauke 2cafed758f
[PS-266] A11y: change tabbed interface to toggle buttons, correctly announce currently active tab as pressed (#2505)
* Change routerLink links to button elements

* Set aria-pressed attribute on button depending on routerLinkActive

* Change base styles to apply to tabs that use `<button>` instead of `<a>`
2022-04-20 14:25:44 +10:00
Oscar Hinton 4d776961b9
Fix search bar position when using sr-only (#2355) 2022-02-11 15:22:38 +01: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
Robyn MacCallum 879b983818 Replace sad face with searching image 2022-01-21 10:31:01 -05:00
Oscar Hinton 8fe821b9a3
Apply Prettier (#2238) 2021-12-21 15:43:35 +01:00
Patrick H. Lauke b5f2474b68 Neutralise/reset heading styles
- make size/weight match regular text
- remove the theming, as it will inherit this anyway from its surroundings/container; having the color explicitly defined here creates issues as it's more specific otherwise and overrides the local context
2021-12-13 19:53:01 +00:00
Daniel James Smith 5294ffacc1
Center login and 2fa entry when login via new tab 2021-11-16 13:48:47 +01:00
Daniel James Smith 732f065012
Add missing semicolons to base.scss 2021-10-14 18:59:38 +02:00
Daniel James Smith d8dbeab911
Position the unlock button closer to the master password entry 2021-10-13 22:32:43 +02:00
Daniel James Smith b910708a31
To center the login prompt use a media query and padding instead 2021-10-12 23:24:05 +02:00
Daniel James Smith f860bcd548
Restrict content width on login prompt via tab 2021-10-12 22:32:05 +02:00
Thomas Rittson 2b3ae50ed9 tidy up scss 2021-05-21 14:06:26 +10:00
Oscar Hinton 1fa3e3d68b
Revert "Popover arrow background color" (#1793) 2021-04-22 15:30:17 +02:00
Vincent Salucci e17649d869
[Send] Enterprise policy enforcement (#1637) 2021-02-24 16:03:44 -06:00
Vincent Salucci 07f5be39d8
[Send] Navigation Tab (#1591)
* Initial commit of send tab

* update jslib (9ddec9b -> 859f317)

* updated skeleton class/html

* removed added space

* cleaned up import groupings

* Updated to use flex container and removed unnecessary scss class
2021-02-02 11:43:31 -06:00
Hinton 86893b97b5 Set the background color for app-root to resolve an issue where the login page would have background bleed 2021-01-16 21:51:33 +01:00
Hinton a8c1312bf5 Apply same background color to popover arrow as the header 2021-01-13 16:11:00 +01:00
Kyle Spearrin b795f0e587
Fix CryptoFunctionService and implement syncLoading (#1371)
* Fix things and implement syncLoading

* feedback
2020-08-31 14:21:59 -04:00
Kyle Spearrin 69e664a154 WIP: add support for nested folders and collection 2018-10-26 12:37:55 -04:00
Kyle Spearrin 815ef17d02 adjustments for edge 18 workarounds 2018-10-03 08:26:46 -04:00
Kyle Spearrin 6f64e9bc9b border color 2018-06-01 17:00:43 -04:00
Kyle Spearrin 37a64beb32 theme scrollbars 2018-06-01 12:13:49 -04:00
Kyle Spearrin e338a6b566 theme tweaks 2018-05-31 16:06:08 -04:00
Kyle Spearrin 8659cc96cb dark theme styling 2018-05-31 15:45:03 -04:00
Kyle Spearrin db06b60704 start styling for dark theme 2018-05-30 23:11:05 -04:00
Kyle Spearrin 072286dbe5 set color for form elements 2018-04-19 22:53:55 -04:00
Kyle Spearrin 38f55d7147 dont show popout in firefox sidebar 2018-04-13 23:37:57 -04:00
Kyle Spearrin 4308947893 private mode component 2018-04-13 22:08:24 -04:00
Kyle Spearrin 0505043e18 sync component 2018-04-13 11:49:03 -04:00
Kyle Spearrin c7e451c75a delete attachment string and disabled styles 2018-04-11 13:58:40 -04:00
Kyle Spearrin bd6eab174c move scss folder under popup 2018-04-10 22:20:50 -04:00