Skip to content

Commit

Permalink
fix(docs-page): use correct boolean to determine versionedDocsOffset (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryce Kalow committed Aug 2, 2022
1 parent 0c3b7c7 commit 22d1667
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/polite-shrimps-refuse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hashicorp/react-docs-page': patch
---

Fix condition for applying the margin top to align search with the version select
3 changes: 1 addition & 2 deletions packages/docs-page/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ export const DocsPageInner: FunctionComponent<DocsPageInnerProps> = ({
id="inner"
role="main"
className={classNames(s.inner, s.tempJumpToSectionParent, {
[s.versionedDocsOffset]:
process.env.ENABLE_VERSIONED_DOCS === 'true',
[s.versionedDocsOffset]: showVersionSelect,
})}
>
<CodeTabsProvider>
Expand Down

1 comment on commit 22d1667

@vercel
Copy link

@vercel vercel bot commented on 22d1667 Aug 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.