Skip to content

Commit

Permalink
added alpha example
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbarnes9 committed Jul 23, 2021
1 parent 19c0413 commit 3a03b8e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
10 changes: 10 additions & 0 deletions src/components/phase-banner/examples/phase-banner-alpha/index.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"fullWidth": true
---
{% from "components/phase-banner/_macro.njk" import onsPhaseBanner %}
{{
onsPhaseBanner({
"badge": "Alpha",
"html": 'This is a new service – your <a href="#feedback">feedback</a> will help us improve it.'
})
}}
6 changes: 5 additions & 1 deletion src/components/phase-banner/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ title: Phase banner
The Phase banner lets users know the service is new and still being worked on, and encourages the user to provide feedback to help improve it.

{{
patternlibExample({"path": "components/phase-banner/examples/phase-banner/index.njk"})
patternlibExample({"path": "components/phase-banner/examples/phase-banner-alpha/index.njk"})
}}

{{
patternlibExample({"path": "components/phase-banner/examples/phase-banner-beta/index.njk"})
}}

## When to use this component
Expand Down
2 changes: 1 addition & 1 deletion src/styles/grid/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ The example below shows the use of flexbox to create the layout for the [phase b

{{
patternlibExample({
"path": "components/phase-banner/examples/phase-banner/index.njk",
"path": "components/phase-banner/examples/phase-banner-beta/index.njk",
"openTab": "html"
})
}}
Expand Down

0 comments on commit 3a03b8e

Please sign in to comment.