Skip to content

Commit

Permalink
Update Layout's sidebar width values (#1738)
Browse files Browse the repository at this point in the history
* update layout's component sidebar width values

* Update sidebar sizing docs

* Create clean-books-act.md

Co-authored-by: Jon Rohan <yes@jonrohan.codes>
  • Loading branch information
vdepizzol and jonrohan authored Nov 8, 2021
1 parent 685bc27 commit dfe73db
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/clean-books-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/css": minor
---

Update `Layout`'s sidebar width values.
4 changes: 2 additions & 2 deletions docs/content/components/layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ Flowing as row:

### Sidebar sizing

- Default: [md: 256px, lg: 296px, xl: 320px]
- `Layout--sidebar-narrow` [md: 240px, lg: 256px, xl: 296px]
- Default: [md: 256px, lg: 296px]
- `Layout--sidebar-narrow` [md: 240px, lg: 256px]
- `Layout--sidebar-wide` [md: 296px, lg: 320px, xl: 344px]

```html live
Expand Down
6 changes: 2 additions & 4 deletions src/support/variables/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,12 @@ $responsive-positions: (
$sidebar-width: (
sm: 220px,
md: 256px,
lg: 296px,
xl: 320px
lg: 296px
) !default;

$sidebar-narrow-width: (
md: 240px,
lg: 256px,
xl: 296px
lg: 256px
) !default;

$sidebar-wide-width: (
Expand Down

0 comments on commit dfe73db

Please sign in to comment.