@@ -19,6 +19,7 @@ import { element } from "../reset.css";
19
19
import { Children } from "../util/Children" ;
20
20
import { useBentoConfig } from "../BentoConfigContext" ;
21
21
import type { ListItemConfig } from "./Config" ;
22
+ import { BentoSprinkles } from "../internal" ;
22
23
23
24
type Kind =
24
25
| {
@@ -55,6 +56,7 @@ type RightItem = {
55
56
} ;
56
57
57
58
type CommonItemProps = {
59
+ borderRadius ?: BentoSprinkles [ "borderRadius" ] ;
58
60
disabled ?: boolean ;
59
61
isFocused ?: boolean ;
60
62
isSelected ?: boolean ;
@@ -105,6 +107,7 @@ export const ListItem = forwardRef<HTMLElement, Props>((props, ref) => {
105
107
focused : ! ! props . isFocused ,
106
108
selected : ! ! props . isSelected ,
107
109
} ) }
110
+ borderRadius = { props . borderRadius ?? config . borderRadius }
108
111
disabled = { props . disabled }
109
112
>
110
113
< Box
@@ -136,7 +139,7 @@ function renderLeft(props: Props, config: ListItemConfig) {
136
139
{ props . illustration ( {
137
140
size : config . iconSize . illustration ,
138
141
kind : "outline" ,
139
- color : props . disabled ? "disabled" : "default" ,
142
+ color : props . disabled ? "disabled" : config . iconColor . illustration ,
140
143
} ) }
141
144
</ Column >
142
145
) ;
@@ -147,7 +150,7 @@ function renderLeft(props: Props, config: ListItemConfig) {
147
150
< Column width = "content" >
148
151
{ props . icon ( {
149
152
size : config . iconSize . leading ,
150
- color : props . disabled ? "disabled" : "default" ,
153
+ color : props . disabled ? "disabled" : config . iconColor . leading ,
151
154
} ) }
152
155
</ Column >
153
156
) ;
@@ -162,7 +165,7 @@ function renderRight(props: Props, config: ListItemConfig) {
162
165
< Column width = "content" >
163
166
{ props . trailingIcon ( {
164
167
size : config . iconSize . trailing ,
165
- color : props . disabled ? "disabled" : "default" ,
168
+ color : props . disabled ? "disabled" : config . iconColor . trailing ,
166
169
} ) }
167
170
</ Column >
168
171
) ;
0 commit comments