Skip to content

Commit

Permalink
Merge pull request #163 from communitiesuk/add-style-to-message-banner
Browse files Browse the repository at this point in the history
Add style to message banner
  • Loading branch information
tom-clarke-dluhc authored May 14, 2024
2 parents 2ddb674 + f7fc890 commit 674bc4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gov_uk_dashboards/components/plotly/banners.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from dash import html


def message_banner(category, message):
def message_banner(category, message, style=None):
"""
Return a coronavirus dashboard-style changelog banner to be used to communicate to the user
when the dashboard was last updated.
Expand All @@ -27,4 +27,5 @@ def message_banner(category, message):
className="govuk-body-s govuk-!-font-weight-bold govuk-!-margin-bottom-0",
),
className="change-log-banner govuk-!-margin-bottom-2",
style=style,
)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
author="Department for Levelling Up, Housing and Communities",
description="Provides access to functionality common to creating a data dashboard.",
name="gov_uk_dashboards",
version="9.38.0",
version="9.39.0",
long_description=long_description,
long_description_content_type="text/markdown",
packages=find_packages(),
Expand Down

0 comments on commit 674bc4a

Please sign in to comment.