Skip to content

Commit

Permalink
Color for placeholder text for File question (#6775)
Browse files Browse the repository at this point in the history
Fixed surveyjs/private-tasks#270

Co-authored-by: Aleksey Novikov <[email protected]>
  • Loading branch information
novikov82 and Aleksey Novikov authored Aug 24, 2023
1 parent 7cb458a commit 09d1736
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/defaultV2-theme/blocks/sd-file.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
text-align: center;
word-break: break-word;
white-space: normal;
color: $foreground-light;
color: $font-questionplaceholder-color;
font-size: $font-editorfont-size;
line-height: multiply(1.5, $font-editorfont-size);
}
Expand Down
2 changes: 1 addition & 1 deletion src/defaultV2-theme/blocks/sd-question.scss
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
min-height: calcSize(24);
font-size: $font-editorfont-size;
line-height: multiply(1.5, $font-editorfont-size);
color: $foreground-light;
color: $font-questionplaceholder-color;

&>div,
&>span {
Expand Down
2 changes: 1 addition & 1 deletion src/defaultV2-theme/blocks/sd-signaturepad.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.sjs_sp_placeholder {
color: $foreground-light;
color: $font-questionplaceholder-color;
font-size: $font-editorfont-size;
line-height: multiply(1.5, $font-editorfont-size);
}
Expand Down
4 changes: 4 additions & 0 deletions src/defaultV2-theme/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ $font-questiondescription-color: var(
var(--sjs-general-forecolor-light, rgba(0, 0, 0, 0.45))
);
$font-questiondescription-size: var(--sjs-font-questiondescription-size, calc(1 * var(--sjs-font-size, $font-size)));
$font-questionplaceholder-color: var(
--sjs-font-questiondescription-color,
var(--sjs-general-forecolor-light, rgba(0, 0, 0, 0.45))
);

$font-editorfont-family: var(--sjs-font-editorfont-family, var(--font-family));
$font-editorfont-weight: var(--sjs-font-editorfont-weight, 400);
Expand Down

0 comments on commit 09d1736

Please sign in to comment.