Skip to content

Commit

Permalink
docs(drawer): Added information about collapsing into overlay mode if…
Browse files Browse the repository at this point in the history
… the drawer is less than 1024 pixels wide.
  • Loading branch information
rebu-dt authored and lukasholzer committed Sep 15, 2020
1 parent 02c4c28 commit fe16de0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libs/barista-components/drawer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ set up a sidenav we use two components: `dt-sidenav-container` which act as a
structural container for our content, sidenav and `dt-sidenav` which represents
the added side content. The component is always at the root of the page.

## Shrinking behaviour

If the `mode` is set to `side`, the drawer will show the side content next to
the primary content, causing the primary content to shrink in width. If the
width of the drawer is less than 1024 pixels, however, it will act as an overlay
on top of the main content instead.

## Basic example

```html
Expand Down

0 comments on commit fe16de0

Please sign in to comment.