mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-28 14:08:21 +02:00
fix(v2): remove accessible anchors via keyboard (#1991)
This commit is contained in:
parent
a4585ec49b
commit
11e84eb3ed
1 changed files with 2 additions and 2 deletions
|
@ -17,8 +17,8 @@ const Heading = Tag => ({id, ...props}) => {
|
|||
}
|
||||
return (
|
||||
<Tag {...props}>
|
||||
<a aria-hidden="true" className="anchor" id={id} />
|
||||
<a aria-hidden="true" className="hash-link" href={`#${id}`}>
|
||||
<a aria-hidden="true" tabIndex="-1" className="anchor" id={id} />
|
||||
<a aria-hidden="true" tabIndex="-1" className="hash-link" href={`#${id}`}>
|
||||
#
|
||||
</a>
|
||||
{props.children}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue