From 7b3aa435c4723c6654c97cac4274ec29ddbba3a3 Mon Sep 17 00:00:00 2001 From: huong-li-nguyen Date: Sun, 22 Oct 2023 17:51:43 +0200 Subject: [PATCH] Remove the tab title for now --- vizro-core/examples/default/app.py | 4 +++- vizro-core/src/vizro/models/_components/_tab.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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, )