Skip to content

Commit 816b114

Browse files
fix: transparent background for docs panel (#4494)
1 parent 2f2a2f9 commit 816b114

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

src/homepageExperience/containers/HomepageContainer.tsx

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,13 @@ export const HomepageContainer: FC = () => {
6262
<>
6363
<Page titleTag={pageTitleSuffixer(['Get Started'])}>
6464
<Page.Header fullWidth={false}>
65-
{/* Need an empty div so the upgrade button aligns to the right. (Because clockface uses space-between to justifyContent)*/}
66-
<div />
65+
<Heading
66+
id="first-mile--header"
67+
element={HeadingElement.H1}
68+
testID="home-page--header"
69+
>
70+
Get Started
71+
</Heading>
6772
<RateLimitAlert location="firstMile.homepage" />
6873
</Page.Header>
6974
<Page.Contents scrollable={true} fullWidth={false}>
@@ -74,13 +79,6 @@ export const HomepageContainer: FC = () => {
7479
direction={FlexDirection.Column}
7580
alignItems={AlignItems.Stretch}
7681
>
77-
<Heading
78-
id="first-mile--header"
79-
element={HeadingElement.H1}
80-
testID="home-page--header"
81-
>
82-
Get Started
83-
</Heading>
8482
<h5>
8583
Write and query data using the programming language of your
8684
choice
@@ -176,14 +174,14 @@ export const HomepageContainer: FC = () => {
176174
<Grid.Column
177175
widthSM={Columns.Four}
178176
widthMD={Columns.Three}
179-
style={{marginTop: '40px'}}
177+
style={{marginTop: '-8px'}}
180178
>
181179
{isFlagEnabled('uiUnificationFlag') ? (
182180
<UsageProvider>
183-
<Resources />
181+
<Resources style={{backgroundColor: InfluxColors.Grey5}} />
184182
</UsageProvider>
185183
) : (
186-
<Resources />
184+
<Resources style={{backgroundColor: InfluxColors.Grey5}} />
187185
)}
188186
</Grid.Column>
189187
</Grid.Row>

src/me/components/Resources.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Libraries
2-
import React, {FC, memo, useContext} from 'react'
2+
import React, {CSSProperties, FC, memo, useContext} from 'react'
33
import {
44
Panel,
55
FlexBox,
@@ -17,7 +17,11 @@ import UsagePanel from 'src/me/components/UsagePanel'
1717
import DocSearchWidget from 'src/me/components/DocSearchWidget'
1818
import VersionInfo from 'src/shared/components/VersionInfo'
1919

20-
const ResourceLists: FC = () => {
20+
type OwnProps = {
21+
style?: CSSProperties
22+
}
23+
24+
const ResourceLists: FC<OwnProps> = (props: OwnProps) => {
2125
const {paygCreditEnabled} = useContext(UsageContext)
2226

2327
return (
@@ -28,15 +32,15 @@ const ResourceLists: FC = () => {
2832
margin={ComponentSize.Small}
2933
>
3034
<Panel testID="documentation--panel">
31-
<Panel.Body>
35+
<Panel.Body style={props.style}>
3236
<DocSearchWidget />
3337
</Panel.Body>
3438
</Panel>
3539
{isFlagEnabled('uiUnificationFlag') && paygCreditEnabled && (
3640
<UsagePanel />
3741
)}
3842
<Panel>
39-
<Panel.Footer>
43+
<Panel.Footer style={props.style}>
4044
<VersionInfo />
4145
</Panel.Footer>
4246
</Panel>

0 commit comments

Comments
 (0)