diff --git a/vizro-core/src/vizro/models/_dashboard.py b/vizro-core/src/vizro/models/_dashboard.py index 36ff3773d..1f58fba67 100644 --- a/vizro-core/src/vizro/models/_dashboard.py +++ b/vizro-core/src/vizro/models/_dashboard.py @@ -34,7 +34,9 @@ def _all_hidden(components: List[Component]): """Returns True if all `components` are either None and/or have hidden=True and/or className contains `d-none`.""" return all( - component is None or getattr(component, "hidden", False) or "d-none" in getattr(component, "className", "d-inline") + component is None + or getattr(component, "hidden", False) + or "d-none" in getattr(component, "className", "d-inline") for component in components ) diff --git a/vizro-core/src/vizro/static/css/layout.css b/vizro-core/src/vizro/static/css/layout.css index f72f2f087..641eb1bae 100644 --- a/vizro-core/src/vizro/static/css/layout.css +++ b/vizro-core/src/vizro/static/css/layout.css @@ -124,10 +124,10 @@ #nav-bar { align-items: center; + background: inherit !important; display: inline-flex; flex-direction: column; padding: 0; - background: inherit !important; } .nav-bar-icon-link {