File tree 3 files changed +9
-1
lines changed
packages/bento-design-system/src
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -15,4 +15,8 @@ export type DisclosureConfig = {
15
15
open : ( props : IconProps ) => Children ;
16
16
closed : ( props : IconProps ) => Children ;
17
17
} ;
18
+ iconSize : {
19
+ 1 : IconProps [ "size" ] ;
20
+ 2 : IconProps [ "size" ] ;
21
+ } ;
18
22
} ;
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export function createDisclosure(config: DisclosureConfig) {
68
68
reverse = { iconPosition === "trailing" }
69
69
>
70
70
< Column width = "content" >
71
- { icon ( { size : 16 , color : level === 1 ? "primary" : "secondary" } ) }
71
+ { icon ( { size : config . iconSize [ level ] , color : level === 1 ? "primary" : "secondary" } ) }
72
72
</ Column >
73
73
< Title size = { config . titleSize [ level ] } color = { level === 1 ? "default" : "secondary" } >
74
74
{ title }
Original file line number Diff line number Diff line change @@ -168,6 +168,10 @@ export const disclosure: DisclosureConfig = {
168
168
open : IconChevronUp ,
169
169
closed : IconChevronDown ,
170
170
} ,
171
+ iconSize : {
172
+ 1 : 16 ,
173
+ 2 : 16 ,
174
+ } ,
171
175
} ;
172
176
173
177
export const disclosureGroup : DisclosureGroupConfig = {
You can’t perform that action at this time.
0 commit comments