Skip to content

Commit 442360c

Browse files
committed
Increase contrast between in/out of collection icon state in quick add list
1 parent 58b800d commit 442360c

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

client/styles/abstracts/_variables.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ $themes: (
8181

8282
table-button-color: $white,
8383
table-button-background-color: #979797,
84+
table-button-active-color: $white,
85+
table-button-background-active-color: #00A1D3,
8486
table-button-hover-color: $white,
8587
table-button-background-hover-color: $p5js-pink,
8688

@@ -158,6 +160,8 @@ $themes: (
158160

159161
table-button-color: $white,
160162
table-button-background-color: #979797,
163+
table-button-active-color: $white,
164+
table-button-background-active-color: #00A1D3,
161165
table-button-hover-color: $white,
162166
table-button-background-hover-color: $p5js-pink,
163167

@@ -232,6 +236,8 @@ $themes: (
232236

233237
table-button-color: #333,
234238
table-button-background-color: #C1C1C1,
239+
table-button-active-color: #333,
240+
table-button-background-active-color: #00FFFF,
235241
table-button-hover-color: #333,
236242
table-button-background-hover-color: $yellow,
237243

client/styles/components/_quick-add.scss

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,20 @@
6363

6464
.quick-add__in-icon {
6565
display: inline-block;
66-
67-
& svg {
68-
opacity: 0.3;
69-
}
7066
}
7167

7268
.quick-add__icon--in-collection .quick-add__in-icon svg {
73-
opacity: 1;
69+
@include themify() {
70+
// icon graphic
71+
polygon {
72+
fill: getThemifyVariable('table-button-active-color');
73+
}
74+
75+
// icon background circle
76+
path {
77+
fill: getThemifyVariable('table-button-background-active-color');
78+
}
79+
}
7480
}
7581

7682
.quick-add__add-icon {

0 commit comments

Comments
 (0)