Skip to content

Commit

Permalink
fix(v2): add shadow to skip link on hover only
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 committed Jun 24, 2021
1 parent 814455f commit 7ed308d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*/

import React, {useRef} from 'react';
import clsx from 'clsx';
import Translate from '@docusaurus/Translate';
import {useLocationChange} from '@docusaurus/theme-common';

Expand Down Expand Up @@ -40,10 +39,7 @@ function SkipToContent(): JSX.Element {

return (
<div ref={containerRef}>
<a
href="#main"
className={clsx(styles.skipToContent, 'shadow--md')}
onClick={handleSkip}>
<a href="#main" className={styles.skipToContent} onClick={handleSkip}>
<Translate
id="theme.common.skipToMainContent"
description="The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@

.skipToContent:focus {
left: 1rem;
box-shadow: var(--ifm-global-shadow-md);
}

0 comments on commit 7ed308d

Please sign in to comment.