Skip to content

Commit b2a32ed

Browse files
committed
Adds secondary variant to announcment banner component
1 parent ff0f1ba commit b2a32ed

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/pages/Staking/HowItWorks/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const HowItWorksPage: PageComponent = () => {
5151
return (
5252
<Box>
5353
<AnnouncementBanner
54+
variant="secondary"
5455
imgSrc={howItWorksIllustration}
5556
title="Find more information about staking below, then go to the staking page."
5657
href="/staking"

src/theme/AnnouncementBanner.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,20 @@ const baseStyle: PartsStyleFunction<typeof parts> = (props) => {
5353
}
5454
}
5555

56+
const secondaryVariant: PartsStyleFunction<typeof parts> = (props) => ({
57+
container: {
58+
bg: mode("brand.50", "#2B3036")(props),
59+
border: mode("none", "1px solid")(props),
60+
borderColor: "brand.300",
61+
},
62+
})
63+
64+
const variants = {
65+
secondary: secondaryVariant,
66+
}
67+
5668
export const AnnouncementBanner = {
5769
parts: parts.keys,
5870
baseStyle,
71+
variants,
5972
}

0 commit comments

Comments
 (0)