Skip to content

Commit c34927e

Browse files
Luke Bowermandependabot-preview[bot]
authored andcommitted
Type interface clean-ups to support [email protected]
1 parent 1bfd4ee commit c34927e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

packages/components/src/Form/Inputs/InputSearch/InputSearch.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,16 @@ import { Flex } from '../../../Layout'
5353
import { InputSearchControls } from './InputSearchControls'
5454

5555
const 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

packages/components/src/Menu/MenuGroupLabel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ interface MenuGroupLabelProps
4141
export 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"

0 commit comments

Comments
 (0)