Skip to content

Commit a95ae08

Browse files
Merge pull request #362 from pavinduLakshan/fix_preview_chip_styles
2 parents 52347ad + 392b911 commit a95ae08

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.changeset/busy-jars-cough.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@oxygen-ui/react": patch
3+
---
4+
5+
Add styles for preview chip

packages/react/src/components/Chip/chip.scss

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,31 @@
136136
}
137137
}
138138

139+
&-preview {
140+
background: var(--oxygen-customComponents-Chip-properties-experimental-background);
141+
border-radius: var(--oxygen-customComponents-Chip-properties-border-radius);
142+
border: var(--oxygen-customComponents-Chip-properties-border);
143+
font-weight: var(--oxygen-customComponents-Chip-properties-font-weight);
144+
line-height: var(--oxygen-customComponents-Chip-properties-line-height);
145+
146+
.MuiChip-icon {
147+
fill: var(--oxygen-customComponents-Chip-properties-experimental-border-color);
148+
149+
path {
150+
stroke: var(--oxygen-customComponents-Chip-properties-experimental-border-color);
151+
stroke-width: var(--oxygen-customComponents-Chip-properties-icon-stroke-width);
152+
}
153+
}
154+
155+
.MuiChip-label {
156+
background-clip: var(--oxygen-customComponents-Chip-properties-background-clip);
157+
-webkit-background-clip: text;
158+
color: var(--oxygen-customComponents-Chip-properties-text-fill-color);
159+
background-image: var(--oxygen-customComponents-Chip-properties-experimental-text-color);
160+
text-transform: var(--oxygen-customComponents-Chip-properties-text-transform);
161+
}
162+
}
163+
139164
&-coming-soon {
140165
background: var(--oxygen-customComponents-Chip-properties-coming-soon-background);
141166
border-radius: var(--oxygen-customComponents-Chip-properties-border-radius);

0 commit comments

Comments
 (0)