fix(v2): remove accessible anchors via keyboard (#1991)

This commit is contained in:
Alexey Pyltsyn 2019-11-16 13:41:23 +03:00 committed by Endi
parent a4585ec49b
commit 11e84eb3ed

View file

@ -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}