Skip to content

Feat/navbar vertical next inline collapse#2087

Open
mistrykaran91 wants to merge 1 commit into
mainfrom
feat/navbar-vertical-next-inline-collapse
Open

Feat/navbar vertical next inline collapse#2087
mistrykaran91 wants to merge 1 commit into
mainfrom
feat/navbar-vertical-next-inline-collapse

Conversation

@mistrykaran91
Copy link
Copy Markdown
Member

@mistrykaran91 mistrykaran91 commented May 20, 2026

  • Add inline collapse mode
  • The collapse/expand icons are switched to elementLayoutPane2 /
    elementLayoutPane2Right in case of inlineCollapse mode
  • Updated example components and templates to include a control for inlineCollapse.

Related #1945


Documentation.
Examples.
Dashboards Demo.
Playwright report.

Coverage Reports:

Code Coverage

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@mistrykaran91 mistrykaran91 force-pushed the feat/navbar-vertical-next-inline-collapse branch from ffa39d0 to f985be6 Compare May 20, 2026 09:17
@mistrykaran91 mistrykaran91 marked this pull request as ready for review May 20, 2026 09:32
@mistrykaran91 mistrykaran91 requested review from a team as code owners May 20, 2026 09:32
@mistrykaran91 mistrykaran91 force-pushed the feat/navbar-vertical-next-inline-collapse branch from aae8515 to 3a4c6ef Compare May 20, 2026 13:41
@mistrykaran91 mistrykaran91 marked this pull request as draft May 20, 2026 13:41
@mistrykaran91 mistrykaran91 force-pushed the feat/navbar-vertical-next-inline-collapse branch from 3a4c6ef to 5e14e6e Compare May 20, 2026 14:05
@mistrykaran91 mistrykaran91 marked this pull request as ready for review May 20, 2026 14:20
@mistrykaran91
Copy link
Copy Markdown
Member Author

/gemini review

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@mistrykaran91 mistrykaran91 force-pushed the feat/navbar-vertical-next-inline-collapse branch from 5e14e6e to edc50b3 Compare May 21, 2026 05:02
@mistrykaran91 mistrykaran91 marked this pull request as draft May 21, 2026 05:06
@mistrykaran91 mistrykaran91 force-pushed the feat/navbar-vertical-next-inline-collapse branch 2 times, most recently from cb080d8 to d785546 Compare May 21, 2026 05:36
@mistrykaran91 mistrykaran91 marked this pull request as ready for review May 21, 2026 06:27
@mistrykaran91 mistrykaran91 force-pushed the feat/navbar-vertical-next-inline-collapse branch 3 times, most recently from 12502fc to 5ad5c17 Compare May 26, 2026 05:09
- 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
@mistrykaran91 mistrykaran91 force-pushed the feat/navbar-vertical-next-inline-collapse branch from 5ad5c17 to c233bdc Compare May 26, 2026 05:35
@mistrykaran91
Copy link
Copy Markdown
Member Author

Going with the one button approach and PR for the same - #2097

}

.inline-collapse-toggle {
display: block;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

icon is not properly aligned vertically center

Image

<div class="collapse-toggle ms-auto">
<div class="mobile-drawer focus-inside navbar-vertical-no-collapse">
<button
#navToggleButton
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hover state is not working once in expanded view

}

:host(.nav-inline-collapse) {
nav {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

main header should adjust its left margin to vertically align with rest of the content in inlineToggle mode

Image

.inline-collapse-toggle {
display: block;
margin-block-start: map.get(all-variables.$spacers, 6);
margin-inline-start: map.get(all-variables.$spacers, 9);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

margin inline shouldn't always be 32px but it should change to 16px based on breakpoint logic same as si-layout-main-padding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants