Skip to content

Commit

Permalink
[Feature branch] Updated form control border color (#2114)
Browse files Browse the repository at this point in the history
* Updated form control border color

* Slighly more transparent

* change sass var name to $euiFormBorderOpaqueColor
  • Loading branch information
cchaos authored and cchaos committed Jul 24, 2019
1 parent 88106c0 commit c50c78b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/form/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@
background-size: 100% 100%; /* 3 */

@if ($borderOnly) {
box-shadow: inset 0 0 0 1px transparentize($euiColorFullShade, .84);
box-shadow: inset 0 0 0 1px $euiFormBorderColor;
} @else {
box-shadow:
0 1px 1px -1px transparentize($euiShadowColor, .8),
0 4px 4px -2px transparentize($euiShadowColor, .8),
inset 0 0 0 1px transparentize($euiColorFullShade, .84);
inset 0 0 0 1px $euiFormBorderColor;
}
}

Expand Down
5 changes: 3 additions & 2 deletions src/components/form/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ $euiSwitchIconHeight: $euiSize !default;
// Coloring
$euiFormBackgroundColor: tintOrShade($euiColorLightestShade, 60%, 40%) !default;
$euiFormBackgroundDisabledColor: darken($euiColorLightestShade, 2%) !default;
$euiFormBorderColor: transparentize($euiColorFullShade, .9) !default;
$euiFormBorderDisabledColor: transparentize($euiColorFullShade, .92) !default;
$euiFormBorderOpaqueColor: shade(desaturate(adjust-hue($euiColorPrimary, 22), 22.95), 26%) !default;
$euiFormBorderColor: transparentize($euiFormBorderOpaqueColor, .9) !default;
$euiFormBorderDisabledColor: transparentize($euiFormBorderOpaqueColor, .9) !default;
$euiFormCustomControlDisabledIconColor: shadeOrTint($euiColorMediumShade, 38%, 48.5%) !default; // exact 508c foreground for $euiColorLightShade
$euiFormControlDisabledColor: $euiColorMediumShade !default;
$euiFormControlBoxShadow: 0 1px 1px -1px transparentize($euiShadowColor, .8), 0 3px 2px -2px transparentize($euiShadowColor, .8);
Expand Down

0 comments on commit c50c78b

Please sign in to comment.