Skip to content

Commit

Permalink
Merge pull request #6755 from surveyjs/placeholder-color-variable
Browse files Browse the repository at this point in the history
add placeholder color variable
  • Loading branch information
OlgaLarina authored Aug 21, 2023
2 parents e842725 + d37da57 commit a2f683d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/defaultV2-theme/blocks/sd-dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
}

.sd-dropdown--empty:not(.sd-input--disabled) .sd-dropdown__filter-string-input::placeholder {
color: $foreground-light;
color: $font-editorfont-placeholdercolor;
}

.sd-dropdown__filter-string-input::placeholder {
Expand All @@ -127,7 +127,7 @@
}

.sd-dropdown__hint-prefix {
color: $foreground-light;
color: $font-editorfont-placeholdercolor;

span {
white-space: pre;
Expand All @@ -136,7 +136,7 @@

.sd-dropdown__hint-suffix {
display: flex;
color: $foreground-light;
color: $font-editorfont-placeholdercolor;

span {
white-space: pre;
Expand Down
2 changes: 1 addition & 1 deletion src/defaultV2-theme/blocks/sd-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}

.sd-input::placeholder {
color: $foreground-light;
color: $font-editorfont-placeholdercolor;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
Expand Down
1 change: 1 addition & 0 deletions src/defaultV2-theme/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ $font-questiondescription-size: var(--sjs-font-questiondescription-size, calc(1
$font-editorfont-family: var(--sjs-font-editorfont-family, var(--font-family));
$font-editorfont-weight: var(--sjs-font-editorfont-weight, 400);
$font-editorfont-color: var(--sjs-font-editorfont-color, var(--sjs-general-forecolor, rgba(0, 0, 0, 0.91)));
$font-editorfont-placeholdercolor: var(--sjs-font-editorfont-placeholdercolor, var(--sjs-general-forecolor-light, var(--foreground-light, #909090)));
$font-editorfont-size: var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, $font-size)));
$base-unit: var(--sjs-base-unit, var(--base-unit, 8px));

Expand Down

0 comments on commit a2f683d

Please sign in to comment.