You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove responsive references and add javascript snippet for how to achieve it (#265)
This PR updates the documentation around sidebars to remove unneeded references and also includes a javascript snippet for how to make your sidebar responsive.
Copy file name to clipboardExpand all lines: src/stories/Components/Sidebar/Sidebar.mdx
+43-3Lines changed: 43 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,10 +21,8 @@ For instructions on how to integrate a sidebar into your applications layout, se
21
21
22
22
`.sidebar--drawer`, `.sidebar--compact`, and `.sidebar--rail` are used to denote which style of sidebar you would like to use.
23
23
24
-
`.sidebar--responsive` can be added to a drawer to allow for a sidebar that responsively changes from the larger state (compact or drawer) to the rail when the screen is smaller. e.g.
Any [Button](?path=/docs/navigation-components-button--docs#default) style can be used for the links.
@@ -33,6 +31,48 @@ Any [Button](?path=/docs/navigation-components-button--docs#default) style can b
33
31
- Compact will use the `.icon-with-label` style
34
32
- Rail will use the `.btn--icon` style and hide the label
35
33
34
+
## Responsive Sidebar
35
+
36
+
The sidebar can be made responsive with a little snippet of Javascript. This allows for the sidebar to change from the larger state (compact or drawer) to the rail when the screen is smaller. e.g.
0 commit comments