Skip to content

Commit bedcd2f

Browse files
author
OlgaLarina
committed
remove $background variables
1 parent d4d136c commit bedcd2f

File tree

4 files changed

+18
-17
lines changed

4 files changed

+18
-17
lines changed

packages/survey-creator-core/src/components/item-value.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
.svc-item-value__item {
159159
.sd-item__control-label,
160160
.sv-ranking-item__text {
161-
color: var(--ctr-survey-ranking-item-text-color-inactive, rgba(0, 0, 0, 0.5));
161+
color: var(--ctr-survey-ranking-item-text-color-inactive, var(--sjs-layer-1-foreground-50, #00000080));
162162
}
163163

164164
.sd-item__decorator {
@@ -167,8 +167,8 @@
167167
}
168168

169169
.sv-ranking-item__index {
170-
border-radius: var(--lbr-ranking-item-number-corner-radius, 1024px);
171-
background: var(--ctr-survey-ranking-item-digit-background-color-inactive, #f4f4f4);
170+
border-radius: var(--lbr-ranking-item-number-corner-radius, var(--lbr-corner-radius-round));
171+
background: var(--ctr-survey-ranking-item-digit-background-color-inactive, var(--sjs-layer-3-background-500, #f4f4f4ff));
172172

173173
svg {
174174
fill: var(--ctr-survey-ranking-item-digit-text-color-inactive, var(--sjs-layer-3-foreground-50, #00000080));

packages/survey-creator-core/src/components/list.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,11 @@
265265

266266
.svc-list__item--group-selected > .svc-list__item-body {
267267
@include ctrDefaultBoldFont;
268-
color: var(--ctr-list-item-text-color-selected, #fff);
269-
background: var(--ctr-list-item-background-color-selected, #19b394);
268+
color: var(--ctr-list-item-text-color-selected, var(--sjs-primary-foreground-100, #ffffffff));
269+
background: var(--ctr-list-item-background-color-selected, var(--sjs-primary-background-500, #19b394ff));
270270

271271
use {
272-
fill: var(--ctr-list-item-icon-color-selected, #ffffff);
272+
fill: var(--ctr-list-item-icon-color-selected, var(--sjs-primary-foreground-100, #ffffffff));
273273
}
274274
}
275275
}

packages/survey-creator-core/src/components/question.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ svc-question {
3535

3636
&:active {
3737
opacity: var(--ctr-survey-question-panel-toolbar-item-opacity-pressed, 0.5);
38-
background: var(--ctr-survey-question-panel-toolbar-item-background-color-pressed, #f5f5f5);
38+
background: var(--ctr-survey-question-panel-toolbar-item-background-color-pressed, var(--sjs-layer-1-background-400, #f5f5f5ff));
3939
}
4040
}
4141
}

packages/survey-creator-core/src/components/tabs/logic-ui.scss

+11-10
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268
padding: 0;
269269
background: none;
270270
box-shadow: none;
271-
271+
272272
border-radius: 0;
273273
overflow: visible;
274274
}
@@ -321,17 +321,17 @@
321321
white-space: nowrap;
322322
}
323323

324-
325324
.svc-logic-placeholder {
326325
width: calcSize(78);
327326
min-width: 100%;
328327
max-width: 100%;
329328
box-sizing: border-box;
330-
margin-top: calcSize(2);
331-
// background: $background;
332-
box-shadow: 0px 1px 2px 0px var(--ctr-shadow-small-color, var(--sjs-special-shadow, #00000040));
333-
border-radius: calcSize(0.5);
334-
padding: calcSize(4) calcSize(5) calcSize(5);
329+
margin-top: var(--lbr-question-panel-header-padding-bottom, 16px);
330+
border-radius: var(--lbr-question-panel-corner-radius, 4px);
331+
background: var(--lbr-question-panel-background-color, #fff);
332+
box-shadow: var(--lbr-question-panel-shadow-offset-x, 0px) var(--lbr-question-panel-shadow-offset-y, 1px)
333+
var(--lbr-question-panel-shadow-blur, 2px) var(--lbr-question-panel-shadow-spread, 0px)
334+
var(--lbr-question-panel-shadow-color, rgba(0, 0, 0, 0.15));
335335
}
336336

337337
.sv-popup--overlay {
@@ -341,11 +341,12 @@
341341
}
342342

343343
.svc-logic-placeholder__text.svc-logic-placeholder__text {
344-
@include ctrDefaultFont;
344+
@include lbrDefaultFont;
345+
color: var(--lbr-placeholder-text-color, rgba(0, 0, 0, 0.45));
345346
text-align: center;
346-
color: $foreground-light;
347347
display: block;
348-
padding: calcSize(4) calcSize(8);
348+
padding: var(--lbr-placeholder-padding-top, 16px) var(--lbr-placeholder-padding-right, 64px)
349+
var(--lbr-placeholder-padding-bottom, 16px) var(--lbr-placeholder-padding-left, 64px);
349350
}
350351

351352
.svc-logic-tab__leave-apply-button {

0 commit comments

Comments
 (0)