Skip to content

Commit f3d194a

Browse files
authored
feat(header): add survey banner (carbon-design-system#4591)
1 parent 5c19125 commit f3d194a

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

src/components/Banner/Banner.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ArrowRight } from '@carbon/react/icons';
55
import {
66
banner,
77
bannerText,
8-
bannerHeading,
8+
// bannerHeading,
99
bannerDetails,
1010
buttonBanner,
1111
} from './Banner.module.scss';
@@ -14,19 +14,20 @@ const Banner = () => {
1414
return (
1515
<div aria-label="banner" className={banner}>
1616
<p className={bannerText}>
17-
<strong className={bannerHeading}>
18-
A new web experience is coming!
19-
</strong>
17+
{/* <strong className={bannerHeading}>
18+
This is the bolded text
19+
</strong> */}
2020
<span className={bannerDetails}>
21-
The v1 Carbon platform is now available in public beta.
21+
Help improve the Carbon website experience by taking our two minute
22+
survey.
2223
</span>
2324
</p>
2425
<Button
25-
href="https://next.carbondesignsystem.com"
26+
href="https://your.feedback.ibm.com/jfe/form/SV_eQVJIwXK3hlrdhc"
2627
className={buttonBanner}
2728
kind="ghost"
2829
renderIcon={ArrowRight}>
29-
Try the Carbon Platform
30+
Take the survey
3031
</Button>
3132
</div>
3233
);

src/components/Banner/Banner.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// position header, left nav and content with banner
2-
.banner + :global(.cds--header),
2+
.banner + :global(header.cds--header),
33
.banner + header + nav + div[class*='leftNavWrapper'],
44
.banner + header + nav + div + span + div + #main-content {
55
top: rem(48px);

src/gatsby-theme-carbon/components/Layout.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Header from 'gatsby-theme-carbon/src/components/Header';
77
import { Switcher } from 'gatsby-theme-carbon/src/components/Switcher';
88
import Footer from 'gatsby-theme-carbon/src/components/Footer';
99
import Container from 'gatsby-theme-carbon/src/components/Container';
10-
// import Banner from '../../components/Banner';
10+
import Banner from '../../components/Banner';
1111

1212
import 'gatsby-theme-carbon/src/styles/index.scss';
1313
import { layout } from '../../styles/Layout.module.scss';
@@ -44,7 +44,7 @@ const Layout = ({
4444
pageDescription={pageDescription}
4545
pageKeywords={pageKeywords}
4646
/>
47-
{/* {homepage && <Banner />} */}
47+
{homepage && <Banner />}
4848
<Header />
4949
<Switcher />
5050
<LeftNav homepage={homepage} is404Page={is404} theme={theme} />

0 commit comments

Comments
 (0)