-
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.
Merge pull request #137 from communitiesuk/NewContextBox
New context box
- Loading branch information
Showing
3 changed files
with
31 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
"""Context_banner""" | ||
from dash import html | ||
|
||
|
||
def context_banner(): | ||
""" | ||
Return context banner based on Gov UK Design component notification banner component. | ||
""" | ||
banner = html.Div( | ||
[ | ||
html.Div( | ||
[ | ||
html.P( | ||
[ | ||
"Data on its own does not present a complete picture. This explorer" | ||
" should be used to generate questions and not reach judgements." | ||
" See about the data section for more information.", | ||
], | ||
className="govuk-warning-text__text notification-banner-under-filter-panel", | ||
) | ||
], | ||
className="govuk-notification-banner__content", | ||
), | ||
], | ||
className="govuk-notification-banner", | ||
role="region", | ||
style={"maxWidth": "1000px", "margin-top": "20px", "margin-bottom": "20px"}, | ||
) | ||
return banner |
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