Skip to content

Commit

Permalink
use proper text contrast for input labels
Browse files Browse the repository at this point in the history
Materialize has _weird_ defaults

Closes #79
  • Loading branch information
derf committed Aug 6, 2023
1 parent f43082f commit 3456350
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions sass/components/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion sass/components/forms/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ button:focus {

label {
font-size: $label-font-size;
color: $input-border-color;
color: $input-label-color;
}

@import 'input-fields';
Expand Down
2 changes: 1 addition & 1 deletion sass/components/forms/_input-fields.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion sass/src/dark/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $secondary-color: color('cyan', 'darken-2');
$link-color: color('light-blue', 'darken-1');
$success-color: color('green', 'darken-2');
$error-color: color('red', 'darken-2');
$input-border-color: $off-black;
$input-label-color: $off-black;
$collection-border-color: color('grey', 'darken-3');
$collection-link-color: color('shades', 'white');
$collection-hover-bg-color: color('grey', 'darken-4');
Expand Down
1 change: 1 addition & 0 deletions sass/src/light/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ $card-link-color: $link-color;
$collection-link-color: color('shades', 'black');
$card-bg-color: color('blue-grey', 'lighten-5');
$inactive-color: color('grey', 'darken-2');
$input-label-color: color('shades', 'black');

0 comments on commit 3456350

Please sign in to comment.