Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion superset-frontend/src/features/home/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/
import { useState, useEffect } from 'react';
import { styled, css, useTheme } from '@apache-superset/core/theme';
import { t } from '@apache-superset/core/translation';
import { ensureStaticPrefix } from 'src/utils/assetUrl';
import { ensureAppRoot } from 'src/utils/pathUtils';
import { getUrlParam } from 'src/utils/urlUtils';
Expand Down Expand Up @@ -334,7 +335,7 @@ export function Menu({
return <>{link}</>;
};
return (
<StyledHeader className="top" id="main-menu" role="navigation">
<StyledHeader className="top" id="main-menu" role="navigation" aria-label={t('Main navigation')}>
<StyledRow>
<StyledCol md={16} xs={24}>
<Tooltip
Expand Down
2 changes: 1 addition & 1 deletion superset-frontend/src/features/home/SubMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ const SubMenuComponent: FunctionComponent<SubMenuProps> = props => {

return (
<StyledHeader backgroundColor={props.backgroundColor}>
<Row className="menu" role="navigation">
<Row className="menu" role="navigation" aria-label={t('Page navigation')}>
{props.name && <div className="header">{props.name}</div>}
<Menu
mode={showMenu}
Expand Down
Loading