From 4b3acf09e294cf501b90ebce41d55c03ab6ee0ec Mon Sep 17 00:00:00 2001 From: Ben Rangasamy Date: Tue, 12 Sep 2023 16:14:08 +0100 Subject: [PATCH 1/2] Add style prop to warning text component --- gov_uk_dashboards/components/plotly/warning_text.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gov_uk_dashboards/components/plotly/warning_text.py b/gov_uk_dashboards/components/plotly/warning_text.py index ca8cc47..2f32b33 100644 --- a/gov_uk_dashboards/components/plotly/warning_text.py +++ b/gov_uk_dashboards/components/plotly/warning_text.py @@ -2,13 +2,14 @@ from dash import html -def warning_text(text: str): +def warning_text(text: str, style: dict = None) -> html.Div: """ Return Gov UK Design component warning text component, ! with text. """ text = html.Div( format_text(text), className="govuk-warning-text", + style=style, ) return text From 88bb1216268568467099b855ba6be2775b10a89c Mon Sep 17 00:00:00 2001 From: Ben Rangasamy Date: Tue, 12 Sep 2023 16:35:08 +0100 Subject: [PATCH 2/2] Update version number --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 70d934b..8df6601 100644 --- a/setup.py +++ b/setup.py @@ -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.16.4", + version="9.17.0", long_description=long_description, long_description_content_type="text/markdown", packages=find_packages(),