Skip to content

Commit 02758c2

Browse files
committed
feat(Chip): Adjust ghost style
1 parent 2995725 commit 02758c2

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

react/MuiCozyTheme/helpers.js

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -111,28 +111,19 @@ export const makeChipStyleByColor = (theme, color) => ({
111111
},
112112
'&.ghost': {
113113
borderWidth: '1px',
114-
borderStyle: 'dashed',
115-
'&:not($disabled)': {
114+
color: theme.palette[color].main,
115+
borderColor: alpha(theme.palette[color].main, 0),
116+
backgroundColor: alpha(
117+
theme.palette[color].main,
118+
theme.palette.action.ghostOpacity
119+
),
120+
'& $icon, & $deleteIcon': {
116121
color: theme.palette[color].main,
117-
borderColor: alpha(
118-
theme.palette[color].main,
119-
theme.palette.border.ghostOpacity
120-
),
121-
backgroundColor: alpha(
122-
theme.palette[color].main,
123-
theme.palette.action.ghostOpacity
124-
),
125-
'& $icon, & $deleteIcon': {
126-
color: theme.palette[color].main,
127-
fill: theme.palette[color].main
128-
}
122+
fill: theme.palette[color].main
129123
},
130124
'&$clickable, &$deletable': {
131125
'&:hover, &:focus': {
132-
borderColor: alpha(
133-
theme.palette[color].main,
134-
theme.palette.border.ghostOpacity
135-
),
126+
borderColor: alpha(theme.palette[color].main, 0),
136127
backgroundColor: alpha(
137128
theme.palette[color].main,
138129
theme.palette.action.hoverGhostOpacity

0 commit comments

Comments
 (0)