From c733f2def610ca183a3b68c2ca7a35cd423286d2 Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Sun, 19 Dec 2021 17:26:57 +0000 Subject: [PATCH] A11y: make expandable box headers actual buttons, expose state with aria-expanded Closes https://github.com/bitwarden/browser/issues/1983 --- src/popup/scss/box.scss | 5 +++- src/popup/send/send-add-edit.component.html | 10 ++++--- src/popup/settings/options.component.html | 30 ++++++++++++--------- 3 files changed, 28 insertions(+), 17 deletions(-) diff --git a/src/popup/scss/box.scss b/src/popup/scss/box.scss index 9503b482a1..e65e32491d 100644 --- a/src/popup/scss/box.scss +++ b/src/popup/scss/box.scss @@ -20,9 +20,12 @@ } .box-header-expandable { - margin: 0 10px 5px 10px; + padding: 0 10px; + margin-bottom: 5px; text-transform: uppercase; display: flex; + width: 100%; + box-sizing: border-box; @include themify($themes) { color: themed('headingColor'); diff --git a/src/popup/send/send-add-edit.component.html b/src/popup/send/send-add-edit.component.html index a297103efa..90e59193ae 100644 --- a/src/popup/send/send-add-edit.component.html +++ b/src/popup/send/send-add-edit.component.html @@ -110,10 +110,12 @@
-

- {{'options' | i18n}} - - +

+

diff --git a/src/popup/settings/options.component.html b/src/popup/settings/options.component.html index 440b023251..7c1e5db852 100644 --- a/src/popup/settings/options.component.html +++ b/src/popup/settings/options.component.html @@ -12,10 +12,12 @@
-

- General - - +

+

@@ -84,10 +86,12 @@
-

- Display - - +

+

@@ -141,10 +145,12 @@
-

- Autofill - - +

+