File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
src/custom-select-control-v2 Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 55### Internal
66
77- ` CustomSelectControlV2 ` : add root element wrapper. ([ #62803 ] ( https://github.com/WordPress/gutenberg/pull/62803 ) )
8+ - ` CustomSelectControlV2 ` : fix popover styles. ([ #62821 ] ( https://github.com/WordPress/gutenberg/pull/62821 ) )
89
910## 28.2.0 (2024-06-26)
1011
Original file line number Diff line number Diff line change @@ -105,10 +105,20 @@ export const Select = styled( Ariakit.Select, {
105105} ) ;
106106
107107export const SelectPopover = styled ( Ariakit . SelectPopover ) `
108+ display: flex;
109+ flex-direction: column;
110+
111+ background-color: ${ COLORS . theme . background } ;
108112 border-radius: 2px;
109- background: ${ COLORS . theme . background } ;
110113 border: 1px solid ${ COLORS . theme . foreground } ;
111114
115+ /* z-index(".components-popover") */
116+ z-index: 1000000;
117+
118+ max-height: min( var( --popover-available-height, 400px ), 400px );
119+ overflow: auto;
120+ overscroll-behavior: contain;
121+
112122 &[data-focus-visible] {
113123 outline: none; // outline will be on the trigger, rather than the popover
114124 }
You can’t perform that action at this time.
0 commit comments