summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Hampton <shampton@gitlab.com>2019-05-28 14:49:36 -0700
committerScott Hampton <shampton@gitlab.com>2019-05-28 14:49:36 -0700
commitc07cd3304c226a634e411a884d849b1cad13382e (patch)
tree120d19a344fc07c637956c9f0b26cc25de272320
parent381113edc3ab5bd64829e3dd1a136c6874887a96 (diff)
downloadgitlab-ce-61145-style-primary-button-type-to-be-aligned-with-pattern-library.tar.gz
The default button colors were also off. It was going to be in a different MR, but the changes were very closely tied so I put them both in this MR.
-rw-r--r--app/assets/stylesheets/framework/buttons.scss16
1 files changed, 8 insertions, 8 deletions
diff --git a/app/assets/stylesheets/framework/buttons.scss b/app/assets/stylesheets/framework/buttons.scss
index e798e4c76e0..9f95e84a0ec 100644
--- a/app/assets/stylesheets/framework/buttons.scss
+++ b/app/assets/stylesheets/framework/buttons.scss
@@ -81,14 +81,14 @@
}
}
-@mixin btn-color($light, $border-light, $normal, $border-normal, $border-dark, $color) {
+@mixin btn-color($light, $border-light, $normal, $border-normal, $dark, $border-dark, $color) {
background-color: $light;
border-color: $border-light;
color: $color;
&:hover,
&:focus {
- background-color: $light;
+ background-color: $normal;
border-color: $border-normal;
color: $color;
}
@@ -105,30 +105,30 @@
&:not(:disabled):not(.disabled).active {
box-shadow: inset 0 2px 4px 0 rgba($black, 0.2);
- background-color: $normal;
+ background-color: $dark;
border-color: $border-dark;
color: $color;
}
}
@mixin btn-green {
- @include btn-color($green-500, $green-600, $green-600, $green-700, $green-800, $white-light);
+ @include btn-color($green-500, $green-600, $green-500, $green-700, $green-600, $green-800, $white-light);
}
@mixin btn-blue {
- @include btn-color($blue-500, $blue-600, $blue-600, $blue-700, $blue-800, $white-light);
+ @include btn-color($blue-500, $blue-600, $blue-500, $blue-700, $blue-600, $blue-800, $white-light);
}
@mixin btn-orange {
- @include btn-color($orange-500, $orange-600, $orange-600, $orange-700, $orange-800, $white-light);
+ @include btn-color($orange-500, $orange-600, $orange-500, $orange-700, $orange-600, $orange-800, $white-light);
}
@mixin btn-red {
- @include btn-color($red-500, $red-600, $red-600, $red-700, $red-800, $white-light);
+ @include btn-color($red-500, $red-600, $red-500, $red-700, $red-600, $red-800, $white-light);
}
@mixin btn-white {
- @include btn-color($white-light, $border-color, $white-normal, $border-white-normal, $border-gray-dark, $gl-text-color);
+ @include btn-color($white-light, $gray-400, $gray-200, $gray-400, $gl-gray-200, $gray-500, $gl-text-color);
}
@mixin btn-with-margin {