Skip to content

Commit 4d94118

Browse files
committed
fix(v2): remove accessible anchors via keyboard
1 parent 472a1a6 commit 4d94118

File tree

1 file changed

+2
-2
lines changed
  • packages/docusaurus-theme-classic/src/theme/Heading

1 file changed

+2
-2
lines changed

packages/docusaurus-theme-classic/src/theme/Heading/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ const Heading = Tag => ({id, ...props}) => {
1717
}
1818
return (
1919
<Tag {...props}>
20-
<a aria-hidden="true" className="anchor" id={id} />
21-
<a aria-hidden="true" className="hash-link" href={`#${id}`}>
20+
<a aria-hidden="true" tabIndex="-1" className="anchor" id={id} />
21+
<a aria-hidden="true" tabIndex="-1" className="hash-link" href={`#${id}`}>
2222
#
2323
</a>
2424
{props.children}

0 commit comments

Comments
 (0)