]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Add background-alpha parameter to form-input-error() mixin, so the background-color...
authorGeoff Kimball <geoff@zurb.com>
Fri, 5 Feb 2016 00:21:13 +0000 (16:21 -0800)
committerGeoff Kimball <geoff@zurb.com>
Fri, 5 Feb 2016 00:21:13 +0000 (16:21 -0800)
scss/forms/_error.scss

index 3fb492f32d9474e4934d1a55734fce67af22150b..792182d4aa7c24bcd51c70f040f3b1c504d11eff 100644 (file)
@@ -37,11 +37,13 @@ $input-error-font-weight: $global-weight-bold !default;
 /// Styles the background and border of an input field to have an error state.
 ///
 /// @param {Color} $background [$alert-color] - Color to use for the background and border.
+/// @param {Number} $background-alpha [0.1] - Transparency level of the background color.
 @mixin form-input-error(
-  $background: $input-background-invalid
+  $background: $input-background-invalid,
+  $background-alpha: 0.1
 ) {
   &:not(:focus) {
-    background-color: rgba($background, 0.1);
+    background-color: rgba($background, $background-alpha);
     border-color: $background;
   }
 }