-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add banner documentation (#899)
* fix button alignment * add banner documentation
- Loading branch information
Showing
7 changed files
with
100 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% raw %} | ||
{% from "wmnds/patterns/banner/_banner.njk" import wmndsBanner %} | ||
{{ | ||
wmndsBanner({ | ||
contentText: null, | ||
contentHTML: "This is a new service - your <a href='#'>feedback</a> will help us to improve it.", | ||
emergency: false, | ||
onPage: false, | ||
phase: false, | ||
phaseText: null | ||
}) | ||
}} | ||
{% endraw %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"wmndsBannerProps": [ | ||
{ | ||
"name": "contentText", | ||
"type": "string", | ||
"description": "<strong>Required.</strong> Specifies the content that will be part of the banner. If contentHTML is supplied, this is ignored." | ||
}, | ||
{ | ||
"name": "contentHTML", | ||
"type": "string", | ||
"description": "<strong>Required.</strong> Uses HTML to specify what content is to be shown in the banner." | ||
}, | ||
{ | ||
"name": "emergency", | ||
"type": "boolean", | ||
"description": "If set to true the banner will display in the emergency style" | ||
}, | ||
{ | ||
"name": "onPage", | ||
"type": "boolean", | ||
"description": "If set to true the on page variant of the banner will display." | ||
}, | ||
{ | ||
"name": "phase", | ||
"type": "boolean", | ||
"description": "If set to true the banner will display the phase indicator." | ||
}, | ||
{ | ||
"name": "phaseText", | ||
"type": "string", | ||
"description": "Text to show in the phase indicator" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters