mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
Explore: Add h1 for screen readers (#85794)
* Add h1 in Explore for screen readers * Add i18n * Move to ExplorePage
This commit is contained in:
@@ -7,6 +7,7 @@ import { ErrorBoundaryAlert, useStyles2, useTheme2 } from '@grafana/ui';
|
||||
import { SplitPaneWrapper } from 'app/core/components/SplitPaneWrapper/SplitPaneWrapper';
|
||||
import { useGrafana } from 'app/core/context/GrafanaContext';
|
||||
import { useNavModel } from 'app/core/hooks/useNavModel';
|
||||
import { Trans } from 'app/core/internationalization';
|
||||
import { GrafanaRouteComponentProps } from 'app/core/navigation/types';
|
||||
import { useDispatch, useSelector } from 'app/types';
|
||||
import { ExploreQueryParams } from 'app/types/explore';
|
||||
@@ -64,6 +65,9 @@ export default function ExplorePage(props: GrafanaRouteComponentProps<{}, Explor
|
||||
[styles.correlationsEditorIndicator]: showCorrelationEditorBar,
|
||||
})}
|
||||
>
|
||||
<h1 className="sr-only">
|
||||
<Trans i18nKey="nav.explore.title" />
|
||||
</h1>
|
||||
<ExploreActions />
|
||||
{showCorrelationEditorBar && <CorrelationEditorModeBar panes={panes} />}
|
||||
<SplitPaneWrapper
|
||||
|
||||
Reference in New Issue
Block a user