File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -53,14 +53,16 @@ import { Flex } from '../../../Layout'
5353import { InputSearchControls } from './InputSearchControls'
5454
5555const getHeight = (
56- py ?: ResponsiveValue < CSS . PaddingProperty < TLengthStyledSystem > >
56+ py ?: ResponsiveValue < CSS . PaddingProperty < TLengthStyledSystem | symbol > >
5757) => {
5858 /* Subtracting vertical padding and border from input text height
5959 Setting height this way instead of on the parent div allows
6060 InputChip to expand vertically as needed
6161 min-height doesn't work because then height: 100% on the children is ignored */
6262 const verticalSpace =
63- typeof py === 'number' ? `${ ( ( py || 0 ) + 1 ) * 2 } px` : `(${ py } * 2) - 2px`
63+ typeof py === 'number'
64+ ? `${ ( ( py || 0 ) + 1 ) * 2 } px`
65+ : `(${ String ( py ) } * 2) - 2px`
6466 return `calc(${ CustomizableInputTextAttributes . height } - ${ verticalSpace } )`
6567}
6668
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ interface MenuGroupLabelProps
4141export const MenuGroupLabel : FC < MenuGroupLabelProps > = ( {
4242 labelContent,
4343 labelStyles,
44+ fontSize,
4445 ...props
4546} ) => {
4647 const labelShimRef : RefObject < any > = useRef ( )
@@ -56,7 +57,7 @@ export const MenuGroupLabel: FC<MenuGroupLabelProps> = ({
5657 */ }
5758 < div ref = { labelShimRef } style = { { height : '0' } } />
5859 < Heading
59- fontSize = " small"
60+ fontSize = { fontSize || ' small' }
6061 as = "h2"
6162 px = "medium"
6263 py = "xsmall"
You can’t perform that action at this time.
0 commit comments