Skip to content

Commit

Permalink
[docs-infra] Fix custom API page headings (#13074)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasTy authored May 10, 2024
1 parent 466c87e commit e3e8a5f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs/src/modules/components/InterfaceApiPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ function Heading(props) {

return (
<Level id={hash}>
{getTranslatedHeader(t, hash)}
<a aria-labelledby={hash} className="anchor-link" href={`#${hash}`} tabIndex={-1}>
<svg>
<use xlinkHref="#anchor-link-icon" />
</svg>
<a aria-labelledby={hash} className="title-link-to-anchor" href={`#${hash}`} tabIndex={-1}>
{getTranslatedHeader(t, hash)}
<span className="anchor-icon">
<svg>
<use xlinkHref="#anchor-link-icon" />
</svg>
</span>
</a>
</Level>
);
Expand Down

0 comments on commit e3e8a5f

Please sign in to comment.