Skip to content

Commit

Permalink
Update derived variables default for inputs
Browse files Browse the repository at this point in the history
Use `$grey-darker` and `$grey` as default instead of `$text-strong` and `$text-light` which may contain the "inherit" value (jgthms#2741)
  • Loading branch information
marcbelletre committed Dec 17, 2019
1 parent 5381f26 commit 7015d30
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion css/bulma.css.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docs/_data/variables/form/shared.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"by_name": {
"$input-color": {
"name": "$input-color",
"value": "$text-strong",
"value": "$grey-darker",
"type": "variable",
"computed_type": "color",
"computed_value": "hsl(0, 0%, 21%)"
Expand Down Expand Up @@ -38,7 +38,7 @@
},
"$input-hover-color": {
"name": "$input-hover-color",
"value": "$text-strong",
"value": "$grey-darker",
"type": "variable",
"computed_type": "color",
"computed_value": "hsl(0, 0%, 21%)"
Expand All @@ -52,7 +52,7 @@
},
"$input-focus-color": {
"name": "$input-focus-color",
"value": "$text-strong",
"value": "$grey-darker",
"type": "variable",
"computed_type": "color",
"computed_value": "hsl(0, 0%, 21%)"
Expand All @@ -76,7 +76,7 @@
},
"$input-disabled-color": {
"name": "$input-disabled-color",
"value": "$text-light",
"value": "$grey",
"type": "variable",
"computed_type": "color",
"computed_value": "hsl(0, 0%, 48%)"
Expand Down Expand Up @@ -152,4 +152,4 @@
"$input-radius"
],
"file_path": "form/shared.sass"
}
}
10 changes: 5 additions & 5 deletions sass/form/shared.sass
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
$input-color: $text-strong !default
$input-color: $grey-darker !default
$input-background-color: $scheme-main !default
$input-border-color: $border !default
$input-height: $control-height !default
$input-shadow: inset 0 0.0625em 0.125em rgba($scheme-invert, 0.05) !default
$input-placeholder-color: rgba($input-color, 0.3) !default
$input-placeholder-color: rgba($grey-darker, 0.3) !default

$input-hover-color: $text-strong !default
$input-hover-color: $grey-darker !default
$input-hover-border-color: $border-hover !default

$input-focus-color: $text-strong !default
$input-focus-color: $grey-darker !default
$input-focus-border-color: $link !default
$input-focus-box-shadow-size: 0 0 0 0.125em !default
$input-focus-box-shadow-color: rgba($link, 0.25) !default

$input-disabled-color: $text-light !default
$input-disabled-color: $grey !default
$input-disabled-background-color: $background !default
$input-disabled-border-color: $background !default
$input-disabled-placeholder-color: rgba($input-disabled-color, 0.3) !default
Expand Down

0 comments on commit 7015d30

Please sign in to comment.