make skip navigation link first focusable element
This commit is contained in:
parent
cc7dcc65f9
commit
6354a77bf1
1 changed files with 3 additions and 2 deletions
|
@ -64,6 +64,8 @@ type Props = {
|
|||
activeChannelStakedLevel: number,
|
||||
};
|
||||
|
||||
// Allow screen reader users ( or keyboard navigation )
|
||||
// to jump to main content
|
||||
const SkipNavigationButton = () => {
|
||||
const skipNavigation = (e) => {
|
||||
// Match any focusable element
|
||||
|
@ -252,6 +254,7 @@ const Header = (props: Props) => {
|
|||
) : (
|
||||
<>
|
||||
<div className="header__navigation">
|
||||
<SkipNavigationButton />
|
||||
{!authHeader && (
|
||||
<span style={{ position: 'relative' }}>
|
||||
<Button
|
||||
|
@ -290,8 +293,6 @@ const Header = (props: Props) => {
|
|||
{...homeButtonNavigationProps}
|
||||
/>
|
||||
|
||||
<SkipNavigationButton />
|
||||
|
||||
{!authHeader && (
|
||||
<div className="header__center">
|
||||
{/* @if TARGET='app' */}
|
||||
|
|
Loading…
Reference in a new issue