Skip to content

Commit

Permalink
small update to the documentation for SideNav
Browse files Browse the repository at this point in the history
  • Loading branch information
didoo committed Sep 19, 2023
1 parent a6573ef commit 59cd589
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/docs/components/side-nav/partials/code/how-to-use.md
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,8 @@ Alternatively, if you want to create a custom transition (or respond in a differ

As mentioned above, the full-fledged `Hds::SideNav` component is "responsive" by default:

- when the **viewport is `desktop`** the sidebar navigation is static and has a fixed width (the width at which the viewport is considered "desktop" is controlled by a dedicated CSS variable, see below for more details)
- when the **viewport is `desktop`** the sidebar navigation is static and has a fixed width
- the width at which the viewport is considered "desktop" is controlled by a dedicated CSS variable `--hds-app-desktop-breakpoint`; if needed it can be overwritten (at `:root` level) to define a custom "desktop" breakpoint
- when the **viewport is `mobile`** the sidebar navigation is responsive and the user can minimize or maximize its width via a toggle button (the component will take care automatically of the transitions between these two states)
- in this case the SideNav occupies only a minimum width in terms of page layout, even when expanded (it partially covers the main content)
- a toggle button is added to the SideNav, used to expand/minimize its width
Expand Down

0 comments on commit 59cd589

Please sign in to comment.