@@ -36,7 +36,7 @@ import BalanceButton from "@cocalc/frontend/purchases/balance-button";
3636import PayAsYouGoModal from "@cocalc/frontend/purchases/pay-as-you-go/modal" ;
3737import openSupportTab from "@cocalc/frontend/support/open" ;
3838import { webapp_client } from "@cocalc/frontend/webapp-client" ;
39- import { COLORS } from "@cocalc/util/theme" ;
39+ import { COLORS , SITE_NAME } from "@cocalc/util/theme" ;
4040import { IS_IOS , IS_MOBILE , IS_SAFARI } from "../feature" ;
4141import { ActiveContent } from "./active-content" ;
4242import { ConnectionIndicator } from "./connection-indicator" ;
@@ -124,6 +124,7 @@ export const Page: React.FC = () => {
124124
125125 const is_commercial = useTypedRedux ( "customize" , "is_commercial" ) ;
126126 const insecure_test_mode = useTypedRedux ( "customize" , "insecure_test_mode" ) ;
127+ const site_name = useTypedRedux ( "customize" , "site_name" ) ?? SITE_NAME ;
127128
128129 function account_tab_icon ( ) : IconName | React . JSX . Element {
129130 if ( is_anonymous ) {
@@ -289,6 +290,8 @@ export const Page: React.FC = () => {
289290 return (
290291 < div
291292 className = "smc-right-tabs-fixed"
293+ role = "region"
294+ aria-label = "Top navigation controls"
292295 style = { {
293296 display : "flex" ,
294297 flex : "0 0 auto" ,
@@ -362,6 +365,8 @@ export const Page: React.FC = () => {
362365 // ARIA: main element serves as the primary landmark for the entire application
363366 const body = (
364367 < main
368+ role = "main"
369+ aria-label = { `${ site_name } application` }
365370 style = { PAGE_STYLE }
366371 onDragOver = { ( e ) => e . preventDefault ( ) }
367372 onDrop = { drop }
0 commit comments