File tree Expand file tree Collapse file tree 7 files changed +13
-6
lines changed Expand file tree Collapse file tree 7 files changed +13
-6
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @spectrum-css/popover " : minor
3
+ " @spectrum-css/picker " : minor
4
+ ---
5
+
6
+ Adding max block size utility in popover so that other components such as picker can use it
Original file line number Diff line number Diff line change 13
13
14
14
@import "./themes/express.css" ;
15
15
@import "@spectrum-css/commons/basebutton.css" ;
16
- @import "../components/popover/index.css" ;
17
16
18
17
.spectrum-Picker {
19
18
/* font */
496
495
/* Fixed menu height */
497
496
.spectrum-Picker--menu-height-fixed {
498
497
& + .spectrum-Popover .is-open {
499
- --spectrum -popover-max-block-size : var ( --mod-picker-popover-max-block-size , 200px ) ;
498
+ --mod -popover-max-block-size : 200px ;
500
499
}
501
500
}
Original file line number Diff line number Diff line change 125
125
" --mod-picker-icon-color-key-focus" ,
126
126
" --mod-picker-inline-size" ,
127
127
" --mod-picker-line-height" ,
128
- " --mod-picker-menu-height-fixed" ,
129
128
" --mod-picker-placeholder-font-style" ,
130
129
" --mod-picker-placeholder-font-weight" ,
131
130
" --mod-picker-spacing-bottom-to-text" ,
322
321
"passthroughs" : [
323
322
" --mod-button-animation-duration" ,
324
323
" --mod-button-font-family" ,
325
- " --mod-button-line-height"
324
+ " --mod-button-line-height" ,
325
+ " --mod-popover-max-block-size"
326
326
],
327
327
"high-contrast" : [
328
328
" --highcontrast-picker-background-color" ,
Original file line number Diff line number Diff line change 47
47
| ` --mod-picker-icon-color-key-focus ` |
48
48
| ` --mod-picker-inline-size ` |
49
49
| ` --mod-picker-line-height ` |
50
- | ` --mod-picker-menu-height-fixed ` |
51
50
| ` --mod-picker-placeholder-font-style ` |
52
51
| ` --mod-picker-placeholder-font-weight ` |
53
52
| ` --mod-picker-spacing-bottom-to-text ` |
Original file line number Diff line number Diff line change 46
46
/* Max menu block size */
47
47
--spectrum-popover-max-block-size : 300px ;
48
48
49
- max-block-size : var (--spectrum-popover-max-block-size );
49
+ max-block-size : var (--mod-popover-max-block-size , -- spectrum-popover-max-block-size );
50
50
}
51
51
52
52
/* windows high contrast mode */
Original file line number Diff line number Diff line change 107
107
" --mod-popover-content-area-spacing-vertical" ,
108
108
" --mod-popover-corner-radius" ,
109
109
" --mod-popover-filter" ,
110
+ " --mod-popover-max-block-size" ,
110
111
" --mod-popover-pointer-edge-spacing" ,
111
112
" --mod-popover-pointer-height" ,
112
113
" --mod-popover-pointer-width" ,
123
124
" --spectrum-popover-content-area-spacing-vertical" ,
124
125
" --spectrum-popover-corner-radius" ,
125
126
" --spectrum-popover-filter" ,
127
+ " --spectrum-popover-max-block-size" ,
126
128
" --spectrum-popover-pointer-edge-offset" ,
127
129
" --spectrum-popover-pointer-edge-spacing" ,
128
130
" --spectrum-popover-pointer-height" ,
Original file line number Diff line number Diff line change 9
9
| ` --mod-popover-content-area-spacing-vertical ` |
10
10
| ` --mod-popover-corner-radius ` |
11
11
| ` --mod-popover-filter ` |
12
+ | ` --mod-popover-max-block-size ` |
12
13
| ` --mod-popover-pointer-edge-spacing ` |
13
14
| ` --mod-popover-pointer-height ` |
14
15
| ` --mod-popover-pointer-width ` |
You can’t perform that action at this time.
0 commit comments