File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -90,20 +90,26 @@ export const MenuList = <
9090
9191 const menuStyles = useMultiStyleConfig ( "Menu" ) ;
9292
93+ // We're pulling in the border radius from the theme for the input component
94+ // so we can match the menu lists' border radius to it, but in 2.8.0 the value
95+ // was changed to being pulled from a theme variable instead of being hardcoded
9396 const size = useSize ( sizeProp ) ;
9497 const inputStyles = useMultiStyleConfig ( "Input" , {
9598 size,
9699 variant,
97100 focusBorderColor,
98101 errorBorderColor,
99102 } ) ;
103+ const fieldStyles = inputStyles . field as Record < string , string > ;
100104
101105 const initialSx : SystemStyleObject = {
102106 ...menuStyles . list ,
103107 minW : "100%" ,
104108 maxHeight : `${ maxHeight } px` ,
105109 overflowY : "auto" ,
106- borderRadius : inputStyles . field ?. borderRadius ,
110+ // This is hacky, but it works. May be removed in the future
111+ "--input-border-radius" : fieldStyles ?. [ "--input-border-radius" ] ,
112+ borderRadius : fieldStyles ?. borderRadius || menuStyles . list ?. borderRadius ,
107113 position : "relative" , // required for offset[Height, Top] > keyboard scroll
108114 WebkitOverflowScrolling : "touch" ,
109115 } ;
You can’t perform that action at this time.
0 commit comments