Feat/navbar vertical next inline collapse#2087
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces an 'inline collapse' mode for the SiNavbarVerticalNextComponent, which replaces the collapsed navbar with a compact control bar. The implementation adds an inlineCollapse input signal, updates the component's template and SCSS for the new layout, and integrates layout-specific icons. Additionally, the PR includes unit and E2E tests to ensure correct behavior and visual consistency, along with updates to example pages. I have no feedback to provide.
ffa39d0 to
f985be6
Compare
aae8515 to
3a4c6ef
Compare
3a4c6ef to
5e14e6e
Compare
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces an 'inline collapse' mode for the 'SiNavbarVerticalNextComponent', allowing the navbar to collapse into a compact control bar. The changes include adding the 'inlineCollapse' input, updating the component's template and styles to handle the new layout, and implementing focus management for the toggle buttons. Corresponding unit tests and example updates have been provided to support this new feature. I have no feedback to provide as the implementation appears complete and well-tested.
5e14e6e to
edc50b3
Compare
cb080d8 to
d785546
Compare
12502fc to
5ad5c17
Compare
- The collapse/expand icons are switched to elementLayoutPane2 / elementLayoutPane2Right when `inlineCollapse` mode - Updated example components and templates to include a control for inlineCollapse. Related #1945
5ad5c17 to
c233bdc
Compare
|
Going with the one button approach and PR for the same - #2097 |
| } | ||
|
|
||
| .inline-collapse-toggle { | ||
| display: block; |
| <div class="collapse-toggle ms-auto"> | ||
| <div class="mobile-drawer focus-inside navbar-vertical-no-collapse"> | ||
| <button | ||
| #navToggleButton |
There was a problem hiding this comment.
hover state is not working once in expanded view
| } | ||
|
|
||
| :host(.nav-inline-collapse) { | ||
| nav { |
| .inline-collapse-toggle { | ||
| display: block; | ||
| margin-block-start: map.get(all-variables.$spacers, 6); | ||
| margin-inline-start: map.get(all-variables.$spacers, 9); |
There was a problem hiding this comment.
margin inline shouldn't always be 32px but it should change to 16px based on breakpoint logic same as si-layout-main-padding


elementLayoutPane2Right in case of inlineCollapse mode
Related #1945
Documentation.
Examples.
Dashboards Demo.
Playwright report.
Coverage Reports: