Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
srijan55 committed Oct 15, 2024
1 parent 93f9502 commit f4fd333
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Header/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const skipContentStyle = mergeStyles({
left: "50%",
position: "absolute",
transform: "translateY(-250%)",
padding: "8px",
padding: "8px",
transition: "transform 0.3s",

"&:focus": {
Expand Down
11 changes: 7 additions & 4 deletions src/pages/Docs/Docs.index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,13 @@ const Docs = () => {

const documentationPane = (
<div className="grid-content" style={docPageStyle}>
<Link className={skipContentStyle} onClick={() => {
const urlWithoutHash = window.location.href.split('#')[0];
window.location.href = urlWithoutHash + "#generated-docs-content"
}} >
<Link
className={skipContentStyle}
onClick={() => {
const urlWithoutHash = window.location.href.split("#")[0];
window.location.href = urlWithoutHash + "#generated-docs-content";
}}
>
Skip to content
</Link>
{tocComponent}
Expand Down

0 comments on commit f4fd333

Please sign in to comment.