@@ -106,7 +106,7 @@ export class HeaderBarImpl extends React.Component<HeaderBarProps> {
106106
107107 protected getOrganizationLogo ( targetTheme : pxt . AppTheme ) {
108108 const logoUrl = targetTheme . organizationWideLogo ;
109- return < div className = "header-logo" >
109+ return < div className = "header-logo" aria-hidden = "true" >
110110 { logoUrl
111111 ? < img src = { isLocal ( ) ? `./assets/${ logoUrl } ` : logoUrl } alt = { lf ( "{0} Logo" , targetTheme . organization ) } />
112112 : < span className = "name" > { targetTheme . organization } </ span > }
@@ -115,10 +115,23 @@ export class HeaderBarImpl extends React.Component<HeaderBarProps> {
115115
116116 protected getTargetLogo ( targetTheme : pxt . AppTheme ) {
117117 const { activityOpen } = this . props ;
118- return < div className = { `ui item logo brand ${ ! activityOpen ? "noclick" : "" } ` } >
118+ const isInteractive = activityOpen && targetTheme . useTextLogo ;
119+
120+ return < div className = { `ui item logo brand ${ ! activityOpen ? "noclick" : "" } ` } aria-hidden = { ! isInteractive } >
119121 { targetTheme . useTextLogo
120- ? [ < span className = "name" key = "org-name" onClick = { this . onBackClicked } > { targetTheme . organizationText } </ span > ,
121- < span className = "name-short" key = "org-name-short" onClick = { this . onBackClicked } > { targetTheme . organizationShortText || targetTheme . organizationText } </ span > ]
122+ ? ( activityOpen
123+ ? [ < Button className = "name menu-button" key = "org-name"
124+ onClick = { this . onBackClicked }
125+ title = { lf ( "MakeCode logo, return to activity selection" ) }
126+ ariaLabel = { lf ( "MakeCode logo, return to activity selection" ) }
127+ label = { targetTheme . organizationText } /> ,
128+ < Button className = "name-short menu-button" key = "org-name-short"
129+ onClick = { this . onBackClicked }
130+ title = { lf ( "MakeCode logo, return to activity selection" ) }
131+ ariaLabel = { lf ( "MakeCode logo, return to activity selection" ) }
132+ label = { targetTheme . organizationShortText || targetTheme . organizationText } /> ]
133+ : [ < span className = "name" key = "org-name" > { targetTheme . organizationText } </ span > ,
134+ < span className = "name-short" key = "org-name-short" > { targetTheme . organizationShortText || targetTheme . organizationText } </ span > ] )
122135 : ( targetTheme . logo || targetTheme . portraitLogo
123136 ? < img className = "logo" src = { targetTheme . logo || targetTheme . portraitLogo } alt = { lf ( "{0} Logo" , targetTheme . boardName ) } />
124137 : < span className = "name" > { targetTheme . boardName } </ span > )
@@ -169,7 +182,7 @@ export class HeaderBarImpl extends React.Component<HeaderBarProps> {
169182 return < div className = "user-menu" >
170183 { signedIn
171184 ? < MenuDropdown id = "profile-dropdown" items = { items } label = { avatarElem || initialsElem } title = { lf ( "Profile Settings" ) } />
172- : < Button className = "menu-button" rightIcon = "xicon cloud-user" title = { lf ( "Sign In" ) } label = { lf ( "Sign In" ) } onClick = { ( ) => {
185+ : < Button className = "menu-button" role = "menuitem" rightIcon = "xicon cloud-user" title = { lf ( "Sign In" ) } label = { lf ( "Sign In" ) } onClick = { ( ) => {
173186 pxt . tickEvent ( `skillmap.usermenu.signin` ) ;
174187 this . props . dispatchShowLoginModal ( ) ;
175188 } } /> }
@@ -192,8 +205,8 @@ export class HeaderBarImpl extends React.Component<HeaderBarProps> {
192205
193206 < div className = "spacer" />
194207 < div className = "header-right" >
195- { activityOpen && < Button className = "menu-button" leftIcon = "fas fa-arrow-left large" title = { lf ( "Return to activity selection" ) } onClick = { this . onBackClicked } /> }
196- < Button className = "menu-button" leftIcon = "fas fa-home large" title = { lf ( "Return to the editor homepage" ) } onClick = { this . onHomeClicked } />
208+ { activityOpen && < Button className = "menu-button" role = "menuitem" leftIcon = "fas fa-arrow-left large" title = { lf ( "Return to activity selection" ) } onClick = { this . onBackClicked } /> }
209+ < Button className = "menu-button" role = "menuitem" leftIcon = "fas fa-home large" title = { lf ( "Return to the editor homepage" ) } onClick = { this . onHomeClicked } />
197210 { helpItems ?. length > 0 && < MenuDropdown id = "skillmap-help" title = { lf ( "Help menu" ) } icon = "fas fa-question-circle large" items = { helpItems } /> }
198211 { settingItems ?. length > 0 && < MenuDropdown id = "settings-help" title = { lf ( "Settings menu" ) } icon = "fas fa-cog large" items = { settingItems } /> }
199212 { hasIdentity && this . getUserMenu ( ) }
0 commit comments