File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import SideNavMobile from "./SideNavMobile"
1515import TranslationBanner from "./TranslationBanner"
1616import TranslationBannerLegal from "./TranslationBannerLegal"
1717import FeedbackWidget from "./FeedbackWidget"
18- import { SkipLink , SkipLinkAnchor } from "./SkipLink"
18+ import { SkipLink } from "./SkipLink"
1919
2020import { ZenModeContext } from "../contexts/ZenModeContext"
2121
@@ -135,8 +135,11 @@ const Layout: React.FC<IProps> = ({
135135 < Nav path = { path } />
136136 { shouldShowSideNav && < SideNavMobile path = { path } /> }
137137 </ ZenMode >
138- < SkipLinkAnchor id = "main-content" />
139- < Flex flexDirection = { { base : "column" , lg : "row" } } >
138+ < Flex
139+ flexDirection = { { base : "column" , lg : "row" } }
140+ id = "main-content"
141+ scrollMarginTop = { 20 }
142+ >
140143 { shouldShowSideNav && (
141144 < ZenMode >
142145 < SideNav path = { path } />
Original file line number Diff line number Diff line change @@ -27,7 +27,3 @@ export const SkipLink: React.FC<IProps> = ({ hrefId }) => {
2727 </ Box >
2828 )
2929}
30-
31- export const SkipLinkAnchor : React . FC < { id : string } > = ( { id } ) => {
32- return < Box height = "80px" mt = "-80px" id = { id } > </ Box >
33- }
You can’t perform that action at this time.
0 commit comments