diff --git a/_lib/solid-components/_pagination.scss b/_lib/solid-components/_pagination.scss index 653cca00..535507e1 100644 --- a/_lib/solid-components/_pagination.scss +++ b/_lib/solid-components/_pagination.scss @@ -76,7 +76,7 @@ .pagination__button--disabled { .pagination__button--prev-icon, .pagination__button--next-icon { - opacity: .3; + opacity: $opacity-disabled; } } } diff --git a/_lib/solid-helpers/_variables.scss b/_lib/solid-helpers/_variables.scss index 1f00b300..8c89e18e 100644 --- a/_lib/solid-helpers/_variables.scss +++ b/_lib/solid-helpers/_variables.scss @@ -127,6 +127,9 @@ $line-height-3: 1.5; // default line-height set on the body $line-height-form: 1.5rem; $line-height-form-small: 1.25rem; +// Disabled opacity for buttons, forms, pagination +$opacity-disabled: .3; + // SVG // ------------------------- // encoding this as utf8 is good! diff --git a/_lib/solid-utilities/_buttons.scss b/_lib/solid-utilities/_buttons.scss index e6eb2fd0..41835e8c 100644 --- a/_lib/solid-utilities/_buttons.scss +++ b/_lib/solid-utilities/_buttons.scss @@ -160,7 +160,7 @@ .button--disabled, .button:disabled { - opacity: .3 !important; + opacity: $opacity-disabled !important; &:hover { cursor: default !important; diff --git a/_lib/solid-utilities/_forms.scss b/_lib/solid-utilities/_forms.scss index 59299c31..98657c11 100644 --- a/_lib/solid-utilities/_forms.scss +++ b/_lib/solid-utilities/_forms.scss @@ -36,7 +36,7 @@ border: $border !important; &:disabled { - opacity: .35 !important; + opacity: $opacity-disabled !important; } } @@ -100,7 +100,7 @@ select::-ms-expand, } &:disabled + label { - opacity: .35 !important; + opacity: $opacity-disabled !important; } } @@ -124,7 +124,7 @@ select::-ms-expand, } &:disabled + label { - opacity: .35 !important; + opacity: $opacity-disabled !important; } } diff --git a/docs/_includes/nav.html b/docs/_includes/nav.html index d7431888..8e160a25 100644 --- a/docs/_includes/nav.html +++ b/docs/_includes/nav.html @@ -36,6 +36,8 @@
$border-radius
+
+
+Used by disabled buttons, forms, and pagination.
+$opacity-disabled
+
+