diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2023-08-06 22:23:06 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2023-08-06 22:23:06 +0200 |
commit | 3456350c2c8cf4bc136eb822f1793ec92f0f2c79 (patch) | |
tree | 306116a86a26278fd031b05f834cdf61691304b2 /sass/components | |
parent | f43082f74e92cb98845efb19017846f4e3255f98 (diff) |
use proper text contrast for input labels
Materialize has _weird_ defaults
Closes #79
Diffstat (limited to 'sass/components')
-rw-r--r-- | sass/components/_variables.scss | 1 | ||||
-rw-r--r-- | sass/components/forms/_forms.scss | 2 | ||||
-rw-r--r-- | sass/components/forms/_input-fields.scss | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/sass/components/_variables.scss b/sass/components/_variables.scss index 4c59c12..fa03d61 100644 --- a/sass/components/_variables.scss +++ b/sass/components/_variables.scss @@ -165,6 +165,7 @@ $dropdown-item-height: 50px !default; // Text Inputs + Textarea $input-height: 3rem !default; $input-border-color: color("grey", "base") !default; +$input-label-color: color("grey", "base") !default; $input-border: 1px solid $input-border-color !default; $input-background: #fff !default; $input-error-color: $error-color !default; diff --git a/sass/components/forms/_forms.scss b/sass/components/forms/_forms.scss index 4c19f4c..a387260 100644 --- a/sass/components/forms/_forms.scss +++ b/sass/components/forms/_forms.scss @@ -10,7 +10,7 @@ button:focus { label {
font-size: $label-font-size;
- color: $input-border-color;
+ color: $input-label-color;
}
@import 'input-fields';
diff --git a/sass/components/forms/_input-fields.scss b/sass/components/forms/_input-fields.scss index f18c2f8..09fa47c 100644 --- a/sass/components/forms/_input-fields.scss +++ b/sass/components/forms/_input-fields.scss @@ -176,7 +176,7 @@ textarea.materialize-textarea { margin-bottom: 1rem; & > label { - color: $input-border-color; + color: $input-label-color; position: absolute; top: 0; left: 0; |