Skip to content

Commit

Permalink
exclude unneeded small size case
Browse files Browse the repository at this point in the history
  • Loading branch information
chad1008 committed Jun 20, 2023
1 parent 1500f75 commit 24190be
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,10 @@ export const Tooltip = styled.span< TooltipProps >`

const inputNumberWidth = ( {
size = 'default',
}: Pick< NumberControlProps, 'size' > ) => {
}: {
size: Exclude< Pick< NumberControlProps, 'size' >[ 'size' ], 'small' >;
} ) => {
const sizes = {
small: space( 16 ),
default: space( 16 ),
'__unstable-large': space( 20 ),
};
Expand Down

0 comments on commit 24190be

Please sign in to comment.