Skip to content

Commit 9f9fccd

Browse files
committed
fix: only apply selectedColor when selected is true
- fixes icons color mismatch with text
1 parent 569a8e9 commit 9f9fccd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Chip/helpers.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,14 +274,14 @@ const getRippleColor = ({
274274
});
275275

276276
if (theme.isV3) {
277-
if (isSelectedColor) {
277+
if (isSelectedColor && selected) {
278278
return color(selectedColor).alpha(0.12).rgb().string();
279279
}
280280

281281
return color(textColor).alpha(0.12).rgb().string();
282282
}
283283

284-
if (isSelectedColor) {
284+
if (isSelectedColor && selected) {
285285
return color(selectedColor).fade(0.5).rgb().string();
286286
}
287287

0 commit comments

Comments
 (0)