File tree Expand file tree Collapse file tree 4 files changed +17
-7
lines changed
docs/src/stories/components/Layout Expand file tree Collapse file tree 4 files changed +17
-7
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @primer/css " : minor
3
+ ---
4
+
5
+ Changing ` PageLayout--isPaneSticky ` to ` PageLayout--sticky ` .
Original file line number Diff line number Diff line change @@ -371,7 +371,6 @@ export const LayoutTemplate = ({
371
371
paneWidth && layoutClassName + '--paneWidth-' + `${ paneWidth } ` ,
372
372
panePosition && layoutClassName + '--panePos-' + `${ panePosition } ` ,
373
373
hasPaneDivider && layoutClassName + '--hasPaneDivider' ,
374
- paneIsSticky && layoutClassName + '--isPaneSticky' ,
375
374
376
375
layoutClassName + '--responsive-' + `${ responsiveVariant } ` ,
377
376
responsiveVariant === 'separateRegions' && layoutClassName + '--responsive-primary-' + `${ primaryRegion } ` ,
@@ -403,6 +402,7 @@ export const LayoutTemplate = ({
403
402
className = { clsx (
404
403
layoutClassName + '-region' ,
405
404
layoutClassName + '-pane' ,
405
+ paneIsSticky && layoutClassName + '-pane--sticky' ,
406
406
paneDividerWhenNarrow &&
407
407
layoutClassName +
408
408
'-region--dividerNarrow-' +
@@ -433,6 +433,7 @@ export const LayoutTemplate = ({
433
433
className = { clsx (
434
434
layoutClassName + '-region' ,
435
435
layoutClassName + '-pane' ,
436
+ paneIsSticky && layoutClassName + '-pane--sticky' ,
436
437
paneDividerWhenNarrow &&
437
438
layoutClassName +
438
439
'-region--dividerNarrow-' +
Original file line number Diff line number Diff line change @@ -163,6 +163,7 @@ Playground.args = {
163
163
// Pane
164
164
hasPane : true ,
165
165
paneWidth : 'wide' ,
166
+ paneIsSticky : true ,
166
167
167
168
// Content
168
169
contentWidth : 'full' ,
Original file line number Diff line number Diff line change @@ -111,12 +111,15 @@ $Layout-responsive-variant-max-breakpoint: 'md' !default;
111
111
112
112
// sticky pane
113
113
114
- & .PageLayout--isPaneSticky {
115
- .PageLayout-pane {
116
- position : sticky ;
117
- top : 0 ;
118
- max-height : 100vh ;
119
- overflow : auto ;
114
+ .PageLayout-pane--sticky {
115
+ position : sticky ;
116
+ top : 0 ;
117
+ max-height : 100vh ;
118
+ overflow : auto ;
119
+ scrollbar-width : thin ;
120
+
121
+ @supports (max-height : 100 dvh) {
122
+ max-height : 100 dvh;
120
123
}
121
124
}
122
125
You can’t perform that action at this time.
0 commit comments