From a2dccf7b314e589be674844fa757276e7064ee5c Mon Sep 17 00:00:00 2001 From: Pete Schuster Date: Wed, 13 Feb 2019 14:48:41 -0500 Subject: [PATCH] disabled state updates (#19) --- assets/sass/all-digital/components/_buttons.scss | 4 ++++ assets/sass/all-digital/components/_form-toggle.scss | 2 +- package.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/assets/sass/all-digital/components/_buttons.scss b/assets/sass/all-digital/components/_buttons.scss index a774451..f685587 100755 --- a/assets/sass/all-digital/components/_buttons.scss +++ b/assets/sass/all-digital/components/_buttons.scss @@ -11,6 +11,7 @@ @include button-active; } + &.is-disabled, &:disabled { opacity: 0.4; border-color: $button-border-color !important; @@ -69,6 +70,7 @@ background-color: map-get($ui-blue-map, button-background-color-active); } + &.is-disabled, &:disabled { color: map-get($ui-blue-map, button-text-color) !important; border-color: map-get($ui-blue-map, button-border-color) !important; @@ -117,6 +119,7 @@ background-color: $button-primary-background-color-active; } + &.is-disabled, &:disabled { border-color: $button-primary-border-color !important; background-color: $button-primary-background-color !important; @@ -160,6 +163,7 @@ color: map-get($ui-blue-map, button-primary-text-color-active); } + &.is-disabled, &:disabled { border-color: map-get($ui-blue-map, button-primary-border-color) !important; background-color: map-get($ui-blue-map, button-primary-background-color) !important; diff --git a/assets/sass/all-digital/components/_form-toggle.scss b/assets/sass/all-digital/components/_form-toggle.scss index 9eeffef..fb3ad70 100644 --- a/assets/sass/all-digital/components/_form-toggle.scss +++ b/assets/sass/all-digital/components/_form-toggle.scss @@ -66,7 +66,7 @@ } input:disabled ~ & { - opacity: 0.8; + opacity: 0.4; } input:focus ~ & { diff --git a/package.json b/package.json index 176399d..7a00e2b 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "all-digital", - "version": "2.6.0", + "version": "2.7.0", "description": "CSS for All Digital", "repository": { "type": "git",