File tree 3 files changed +10
-7
lines changed
packages/bento-design-system/src
3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -3,5 +3,8 @@ import { BentoSprinkles } from "../internal";
3
3
4
4
export type IconButtonConfig = {
5
5
radius : BentoSprinkles [ "borderRadius" ] ;
6
- padding : Record < IconProps [ "size" ] , BentoSprinkles [ "padding" ] > ;
6
+ padding : Record <
7
+ IconProps [ "size" ] ,
8
+ { paddingX : BentoSprinkles [ "paddingX" ] ; paddingY : BentoSprinkles [ "paddingY" ] }
9
+ > ;
7
10
} ;
Original file line number Diff line number Diff line change @@ -56,9 +56,9 @@ export function IconButton(props: Props) {
56
56
alignItems = "center"
57
57
justifyContent = "center"
58
58
borderRadius = { config . radius }
59
- padding = { match ( props . kind )
59
+ { ... match ( props . kind )
60
60
. with ( "solid" , "outline" , ( ) => config . padding [ props . size ] )
61
- . with ( "transparent" , ( ) => undefined )
61
+ . with ( "transparent" , ( ) => { } )
62
62
. exhaustive ( ) }
63
63
>
64
64
{ props . icon ( { size : props . size , color : "inherit" } ) }
Original file line number Diff line number Diff line change @@ -314,10 +314,10 @@ export const formLayout: FormLayoutConfig = {
314
314
export const iconButton : IconButtonConfig = {
315
315
radius : 4 ,
316
316
padding : {
317
- 8 : 8 ,
318
- 12 : 8 ,
319
- 16 : 16 ,
320
- 24 : 16 ,
317
+ 8 : { paddingX : 8 , paddingY : 8 } ,
318
+ 12 : { paddingX : 8 , paddingY : 8 } ,
319
+ 16 : { paddingX : 16 , paddingY : 16 } ,
320
+ 24 : { paddingX : 16 , paddingY : 16 } ,
321
321
} ,
322
322
} ;
323
323
You can’t perform that action at this time.
0 commit comments