From dd781e00469ab81373a3d36b769e76886233bc6e Mon Sep 17 00:00:00 2001 From: Sarah Rietkerk <49178322+srietkerk@users.noreply.github.com> Date: Wed, 10 Apr 2024 13:36:41 -0700 Subject: [PATCH] Accessibility insights fixes (#9955) * add aria-label to editor toggle, change the dropdown language selector to an option role rather than menuitem * add role=menuitem to organization logo * give editor selector div the role menuitem * cloud sync status component is only visual. do not include an aria label on sui items that do not have a role or has a nullish role * remove button role from outer div for projects header * remove menu role from projectnamearea, give explicit role of button to save project button * change other toolbar menus to menubars * fixed capitalization on editortoggle aria label --- webapp/src/container.tsx | 4 ++-- webapp/src/editortoolbar.tsx | 8 ++++---- webapp/src/headerbar.tsx | 4 ++-- webapp/src/identity.tsx | 4 ++-- webapp/src/projects.tsx | 2 +- webapp/src/sui.tsx | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/webapp/src/container.tsx b/webapp/src/container.tsx index 0d57cff4bf0a..f4a2a216e180 100644 --- a/webapp/src/container.tsx +++ b/webapp/src/container.tsx @@ -525,12 +525,12 @@ export class EditorSelector extends data.Component { } return ( -
+
{showSandbox && } {showBlocks && } {textLanguage} {secondTextLanguage} - {showDropdown && + {showDropdown && } diff --git a/webapp/src/editortoolbar.tsx b/webapp/src/editortoolbar.tsx index bd654a948dcd..c713797d7a58 100644 --- a/webapp/src/editortoolbar.tsx +++ b/webapp/src/editortoolbar.tsx @@ -153,7 +153,7 @@ export class EditorToolbar extends data.Component) if (showSave) { - saveInput.push() + saveInput.push() } return saveInput; @@ -416,7 +416,7 @@ export class EditorToolbar extends data.Component -