diff --git a/vizro-core/examples/default/app.py b/vizro-core/examples/default/app.py index 577ba5289..e44aa6ce6 100644 --- a/vizro-core/examples/default/app.py +++ b/vizro-core/examples/default/app.py @@ -87,8 +87,10 @@ ], controls=[ # TODO: Fix issue of graphs only being updated if they are target of controls + # e.g. if you don't add the parameter below, all of the charts will not get loaded + # probably need to implement some logic for an on_tab_load action vm.Parameter( - targets=["graph-1.y", "graph-2.y", "graph-3.y", "graph-4.y"], + targets=["graph-1.y", "graph-2.y", "graph-3.y", "graph-4.y", "graph-5.y"], selector=vm.RadioItems(options=["lifeExp", "pop", "gdpPercap"], title="Select variable"), ) ], diff --git a/vizro-core/src/vizro/models/_components/_tab.py b/vizro-core/src/vizro/models/_components/_tab.py index 3b5292834..524e01a0e 100644 --- a/vizro-core/src/vizro/models/_components/_tab.py +++ b/vizro-core/src/vizro/models/_components/_tab.py @@ -18,7 +18,7 @@ class Tab(VizroBaseModel): def build(self): components = [component.build() for component in self.components] return dcc.Tab( - html.Div(children=[html.H3(self.title, className="tab-title"), *components]), + html.Div(children=[*components]), id=self.id, label=self.title, )