Skip to content

Commit 3ce680a

Browse files
committed
Update hover background and label colors for TargetButton blue and purple variants
- the left side of the gradient should be bg dimmed, normal text color - when hovered, left side text should be colored according to [Fragment] └── packages └── ui └── src ├── components │ └── editor │ └── prompt │ └── TargetButton │ ├── TargetButton.module.scss │ └── TargetButton.tsx └── styles └── foundation └── _colors.scss
1 parent 7abd38b commit 3ce680a

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎packages/ui/src/components/editor/prompt/TargetButton/TargetButton.module.scss‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
--ascii-color: var(--cwc-blue-foreground);
3939

4040
&:not(.button--compact) {
41-
background: linear-gradient(90deg, var(--cwc-blue-background) 0%, transparent 100%);
41+
background: linear-gradient(90deg, var(--cwc-bg-secondary) 0%, transparent 100%);
4242

4343
.button__label {
44-
color: var(--cwc-blue-foreground);
44+
color: var(--cwc-text-color);
4545
}
4646
}
4747
}
@@ -50,10 +50,10 @@
5050
--ascii-color: var(--cwc-purple-foreground);
5151

5252
&:not(.button--compact) {
53-
background: linear-gradient(90deg, var(--cwc-purple-background) 0%, transparent 100%);
53+
background: linear-gradient(90deg, var(--cwc-bg-secondary) 0%, transparent 100%);
5454

5555
.button__label {
56-
color: var(--cwc-purple-foreground);
56+
color: var(--cwc-text-color);
5757
}
5858
}
5959
}
@@ -74,6 +74,7 @@
7474
background: var(--cwc-blue-background);
7575
color: var(--cwc-blue-foreground);
7676

77+
.button__label,
7778
.button__description {
7879
color: var(--cwc-blue-foreground);
7980
}
@@ -83,6 +84,7 @@
8384
background: var(--cwc-purple-background);
8485
color: var(--cwc-purple-foreground);
8586

87+
.button__label,
8688
.button__description {
8789
color: var(--cwc-purple-foreground);
8890
}

0 commit comments

Comments
 (0)