Skip to content

Commit 9f825c8

Browse files
committed
fix: getting started card styling
1 parent 59dc994 commit 9f825c8

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

src/Shared/Components/GettingStartedCard/GettingStarted.tsx

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@
1414
* limitations under the License.
1515
*/
1616

17+
import { ComponentSizeType } from '@Shared/constants'
1718
import GettingToast from '../../../Assets/Img/lifebuoy.png'
1819
import updateLoginCount from './service'
1920
import { LOGIN_COUNT, MAX_LOGIN_COUNT, POSTHOG_EVENT_ONBOARDING } from '../../../Common'
2021
import { handlePostHogEventUpdate, setActionWithExpiry } from '../Header/utils'
2122
import { GettingStartedType } from './types'
2223
import './gettingStarted.scss'
24+
import { Button, ButtonStyleType, ButtonVariantType } from '../Button'
2325

2426
const GettingStartedCard = ({ className, hideGettingStartedCard }: GettingStartedType) => {
2527
const onClickedOkay = async (e) => {
@@ -41,27 +43,27 @@ const GettingStartedCard = ({ className, hideGettingStartedCard }: GettingStarte
4143
return (
4244
<div className="getting_tippy__position">
4345
<div className="arrow-up" />
44-
<div className={`getting-started-card cn-0 p-20 br-8 fs-13 ${className}`}>
46+
<div className={`getting-started-card cn-0 p-20 br-8 fs-13 bg__overlay dc__border ${className}`}>
4547
<img className="mb-12 icon-dim-32" src={GettingToast} alt="getting started icon" />
46-
<div className="flex column left fw-6">Getting started</div>
47-
<div>You can always access the Getting Started guide from here.</div>
48-
<div className="mt-12 lh-18">
49-
<button
48+
<div className="flex column left fw-6 cn-7">Getting started</div>
49+
<div className="cn-7">You can always access the Getting Started guide from here.</div>
50+
<div className="mt-12 lh-18 flex left dc__gap-12">
51+
<Button
52+
text="Okay"
53+
size={ComponentSizeType.xs}
54+
dataTestId="getting-started-okay"
5055
onClick={onClickedOkay}
51-
type="button"
52-
className="bw-0 cn-9 fw-6 br-4 mr-12 pt-4 pb-4 pl-8 pr-8 pl-8 pr-8"
5356
data-posthog={POSTHOG_EVENT_ONBOARDING.TOOLTIP_OKAY}
54-
>
55-
Okay
56-
</button>
57-
<button
58-
className="br-4 token__dont-show en-0 bw-1 dc__transparent pl-8 pr-8 pt-3 pb-3"
59-
type="button"
60-
data-posthog={POSTHOG_EVENT_ONBOARDING.TOOLTIP_DONT_SHOW_AGAIN}
57+
/>
58+
<Button
59+
text="Don't show again"
60+
size={ComponentSizeType.xs}
61+
dataTestId="getting-started-don't-show-again"
6162
onClick={onClickedDontShowAgain}
62-
>
63-
Don&apos;t show again
64-
</button>
63+
style={ButtonStyleType.neutral}
64+
data-posthog={POSTHOG_EVENT_ONBOARDING.TOOLTIP_DONT_SHOW_AGAIN}
65+
variant={ButtonVariantType.secondary}
66+
/>
6567
</div>
6668
</div>
6769
</div>

src/Shared/Components/GettingStartedCard/gettingStarted.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616

1717
.getting-started-card {
18-
background-color: var(--N900);
1918
position: fixed;
2019
z-index: 6;
2120
right: 20px;
@@ -27,7 +26,7 @@
2726
height: 0;
2827
border-left: 12px solid transparent;
2928
border-right: 12px solid transparent;
30-
border-bottom: 12px solid var(--N900);
29+
border-bottom: 12px solid var(--bg-overlay);
3130
right: 64px;
3231
position: fixed;
3332
top: 42px;

0 commit comments

Comments
 (0)