From 004271316762e1a412f13a4d7ea16b89912fadc0 Mon Sep 17 00:00:00 2001 From: Sarah Rietkerk Date: Mon, 8 Apr 2024 14:25:34 -0700 Subject: [PATCH 1/8] add aria-label to editor toggle, change the dropdown language selector to an option role rather than menuitem --- webapp/src/container.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/src/container.tsx b/webapp/src/container.tsx index 0d57cff4bf0a..a20e9b96a181 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 && } From dab7b3499918571a89549e2b47557eb00e754681 Mon Sep 17 00:00:00 2001 From: Sarah Rietkerk Date: Mon, 8 Apr 2024 14:27:28 -0700 Subject: [PATCH 2/8] add role=menuitem to organization logo --- webapp/src/headerbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/headerbar.tsx b/webapp/src/headerbar.tsx index 9e739264cb45..fe6141300fac 100644 --- a/webapp/src/headerbar.tsx +++ b/webapp/src/headerbar.tsx @@ -105,7 +105,7 @@ export class HeaderBar extends data.Component { if (view === "time-machine") { return <>; } - return
+ return
{targetTheme.organizationWideLogo || targetTheme.organizationLogo ? {lf("{0} : {targetTheme.organization}} From 5e5cb468fa831f3d27f312cdbd981a989c3fed04 Mon Sep 17 00:00:00 2001 From: Sarah Rietkerk Date: Mon, 8 Apr 2024 14:48:47 -0700 Subject: [PATCH 3/8] give editor selector div the role menuitem --- webapp/src/headerbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/headerbar.tsx b/webapp/src/headerbar.tsx index fe6141300fac..d873f3d8e90c 100644 --- a/webapp/src/headerbar.tsx +++ b/webapp/src/headerbar.tsx @@ -178,7 +178,7 @@ export class HeaderBar extends data.Component { break; } } else { - return
+ return
} From 408a555eb2bc2926a7db463224690fb64814221c Mon Sep 17 00:00:00 2001 From: Sarah Rietkerk Date: Mon, 8 Apr 2024 17:21:09 -0700 Subject: [PATCH 4/8] 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 --- webapp/src/identity.tsx | 4 ++-- webapp/src/sui.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/src/identity.tsx b/webapp/src/identity.tsx index 22f3d4ad2195..8c1d047c6ac0 100644 --- a/webapp/src/identity.tsx +++ b/webapp/src/identity.tsx @@ -189,8 +189,8 @@ export class CloudSaveStatus extends data.Component { const syncing = preparing || cloudStatus.value === "syncing"; return (
- {!syncing && } - {syncing && } + {!syncing && } + {syncing && } {cloudStatus.value !== "none" && cloudStatus.value !== "synced" && {cloudStatus.shortStatus}}
); } diff --git a/webapp/src/sui.tsx b/webapp/src/sui.tsx index 25948b0a8807..3915b0f31abc 100644 --- a/webapp/src/sui.tsx +++ b/webapp/src/sui.tsx @@ -500,7 +500,7 @@ export class Item extends data.Component { return (
Date: Tue, 9 Apr 2024 12:04:37 -0700 Subject: [PATCH 5/8] remove button role from outer div for projects header --- webapp/src/projects.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/projects.tsx b/webapp/src/projects.tsx index 29c22c1b679f..04cc1db8fc32 100644 --- a/webapp/src/projects.tsx +++ b/webapp/src/projects.tsx @@ -149,7 +149,7 @@ export class Projects extends auth.Component {
{scriptManager ?

{lf("My Projects")} From 61e0e19435d9f0c9a958acc10603ff44d68634b9 Mon Sep 17 00:00:00 2001 From: Sarah Rietkerk Date: Tue, 9 Apr 2024 12:09:38 -0700 Subject: [PATCH 6/8] remove menu role from projectnamearea, give explicit role of button to save project button --- webapp/src/editortoolbar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/src/editortoolbar.tsx b/webapp/src/editortoolbar.tsx index bd654a948dcd..89e8ede05ce5 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; @@ -431,7 +431,7 @@ export class EditorToolbar extends data.Component}

{(showProjectRename || showGithub || identity.CloudSaveStatus.wouldRender(header.id)) && -