Skip to content

Commit

Permalink
improve left side css styling
Browse files Browse the repository at this point in the history
  • Loading branch information
nadijagraca committed Nov 14, 2023
1 parent f8c7cf9 commit 765bce1
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!--
A new scriv changelog fragment.
Uncomment the section that is right (remove the HTML comment wrapper).
-->

<!--
### Highlights ✨
- A bullet item for the Highlights ✨ category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1))
-->
<!--
### Removed
- A bullet item for the Removed category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1))
-->
<!--
### Added
- A bullet item for the Added category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1))
-->
<!--
### Changed
- A bullet item for the Changed category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1))
-->
<!--
### Deprecated
- A bullet item for the Deprecated category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1))
-->
<!--
### Fixed
- A bullet item for the Fixed category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1))
-->
<!--
### Security
- A bullet item for the Security category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1))
-->
1 change: 0 additions & 1 deletion vizro-core/src/vizro/models/_navigation/_accordion.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def build(self, *, active_page_id=None):
persistence_type="session",
always_open=True,
),
html.Hr(),
],
className="nav_panel",
id="nav_panel_outer",
Expand Down
2 changes: 1 addition & 1 deletion vizro-core/src/vizro/models/_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def build(self):
self._update_graph_theme()
controls_content = [control.build() for control in self.controls]
control_panel = (
html.Div(children=[*controls_content, html.Hr()], className="control_panel", id="control_panel_outer")
html.Div(children=[*controls_content], className="control_panel", id="control_panel_outer")
if controls_content
else html.Div(hidden=True, id="control_panel_outer")
)
Expand Down
10 changes: 9 additions & 1 deletion vizro-core/src/vizro/static/css/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
padding: 40px 32px 0 32px;
width: 352px;
overflow: auto;
gap: var(--spacing-04);
gap: var(--spacing-08);
}

.right_side {
Expand Down Expand Up @@ -52,6 +52,10 @@
flex-direction: column;
}

.nav_panel:not(:empty) {
border-bottom: 1px solid var(--border-subtle-alpha-01);
}

.control_panel {
align-self: stretch;
display: flex;
Expand All @@ -60,6 +64,10 @@
padding: 4px 0 24px 0;
}

.control_panel:not(:empty) {
border-bottom: 1px solid var(--border-subtle-alpha-01);
}

.page_error_container {
align-items: center;
background: var(--surfaces-bg-03);
Expand Down
2 changes: 0 additions & 2 deletions vizro-core/tests/unit/vizro/models/_navigation/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def accordion_from_page_as_list():
persistence_type="session",
always_open=True,
),
html.Hr(),
],
className="nav_panel",
id="nav_panel_outer",
Expand Down Expand Up @@ -90,7 +89,6 @@ def accordion_from_pages_as_dict():
persistence_type="session",
always_open=True,
),
html.Hr(),
],
className="nav_panel",
id="nav_panel_outer",
Expand Down

0 comments on commit 765bce1

Please sign in to comment.