diff --git a/vizro-core/examples/scratch_dev/app.py b/vizro-core/examples/scratch_dev/app.py index 7a2566821..5c9dd7d9e 100644 --- a/vizro-core/examples/scratch_dev/app.py +++ b/vizro-core/examples/scratch_dev/app.py @@ -22,4 +22,4 @@ dashboard = vm.Dashboard(pages=[page]) if __name__ == "__main__": - Vizro().build(dashboard).run() \ No newline at end of file + Vizro().build(dashboard).run() diff --git a/vizro-core/src/vizro/models/_components/form/date_picker.py b/vizro-core/src/vizro/models/_components/form/date_picker.py index a756a1194..fefa81625 100644 --- a/vizro-core/src/vizro/models/_components/form/date_picker.py +++ b/vizro-core/src/vizro/models/_components/form/date_picker.py @@ -64,7 +64,7 @@ def build(self): persistence=True, persistence_type="session", type="range" if self.range else "default", - allowSingleDateInRange= True, + allowSingleDateInRange=True, className="datepicker", # removes the default red color for weekend days styles={"day": {"color": "var(--mantine-color-text"}}, diff --git a/vizro-core/src/vizro/models/_dashboard.py b/vizro-core/src/vizro/models/_dashboard.py index 62e1f12be..94d319612 100644 --- a/vizro-core/src/vizro/models/_dashboard.py +++ b/vizro-core/src/vizro/models/_dashboard.py @@ -175,7 +175,7 @@ def build(self): return dmc.MantineProvider( layout, # Use the `theme` to style all Mantine components with a Vizro theme. For more info see https://www.dash-mantine-components.com/components/mantineprovider - theme = {"primaryColor": "gray"} + theme={"primaryColor": "gray"}, ) def _validate_logos(self): diff --git a/vizro-core/tests/unit/vizro/models/_components/form/test_date_picker.py b/vizro-core/tests/unit/vizro/models/_components/form/test_date_picker.py index 90e03e2df..538353e47 100644 --- a/vizro-core/tests/unit/vizro/models/_components/form/test_date_picker.py +++ b/vizro-core/tests/unit/vizro/models/_components/form/test_date_picker.py @@ -6,7 +6,7 @@ import dash_mantine_components as dmc import pytest from asserts import assert_component_equal -from dash import dcc, html +from dash import html try: from pydantic.v1 import ValidationError @@ -132,7 +132,7 @@ def test_datepicker_build(self, range, value): className="datepicker", # removes the default red color for weekend days styles={"day": {"color": "var(--mantine-color-text"}}, - ) + ), ], ) assert_component_equal(date_picker, expected_datepicker) diff --git a/vizro-core/tests/unit/vizro/models/test_dashboard.py b/vizro-core/tests/unit/vizro/models/test_dashboard.py index d3e6d06da..9e321ac85 100644 --- a/vizro-core/tests/unit/vizro/models/test_dashboard.py +++ b/vizro-core/tests/unit/vizro/models/test_dashboard.py @@ -276,21 +276,24 @@ def test_dashboard_build(self, vizro_app, page_1, page_2): layout={"title": {"pad_l": 0, "pad_r": 0}, "margin_l": 24, "margin_t": 24, "margin_b": 16} ) - expected_dashboard_container = dmc.MantineProvider(html.Div( - id="dashboard-container", - children=[ - html.Div(id="vizro_version", children=vizro.__version__, hidden=True), - dcc.Store( - id="vizro_themes", - data={ - "vizro_dark": dashboard_vizro_dark, - "vizro_light": dashboard_vizro_light, - }, - ), - ActionLoop._create_app_callbacks(), - dash.page_container, - ], - ), theme = {"primaryColor": "gray"}) + expected_dashboard_container = dmc.MantineProvider( + html.Div( + id="dashboard-container", + children=[ + html.Div(id="vizro_version", children=vizro.__version__, hidden=True), + dcc.Store( + id="vizro_themes", + data={ + "vizro_dark": dashboard_vizro_dark, + "vizro_light": dashboard_vizro_light, + }, + ), + ActionLoop._create_app_callbacks(), + dash.page_container, + ], + ), + theme={"primaryColor": "gray"}, + ) assert_component_equal(dashboard.build(), expected_dashboard_container)