From 7a4e1611bc959dc72e1ca960835631ea0bcb42c4 Mon Sep 17 00:00:00 2001 From: jlukic Date: Fri, 15 May 2015 15:18:21 -0400 Subject: [PATCH] Fix #2253, improper disabled form field rules --- src/definitions/collections/form.less | 10 +++++----- src/themes/default/collections/form.variables | 3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/definitions/collections/form.less b/src/definitions/collections/form.less index 6fc7a12e3..deb1a4e34 100755 --- a/src/definitions/collections/form.less +++ b/src/definitions/collections/form.less @@ -516,18 +516,18 @@ Disabled ---------------------*/ -.ui.form .field :disabled, -.ui.form .field.disabled { - opacity: 0.5; +.ui.form .disabled.fields .field, +.ui.form .disabled.field, +.ui.form .field :disabled { + opacity: @disabledOpacity; } .ui.form .field.disabled label { - opacity: 0.5; + opacity: @disabledLabelOpacity; } .ui.form .field.disabled :disabled { opacity: 1; } - /*-------------- Loading ---------------*/ diff --git a/src/themes/default/collections/form.variables b/src/themes/default/collections/form.variables index a44405808..e6e97bf34 100644 --- a/src/themes/default/collections/form.variables +++ b/src/themes/default/collections/form.variables @@ -98,6 +98,9 @@ @textAreaFocusBoxShadow: @inputFocusBoxShadow; @textAreaFocusBorderRadius: @inputFocusBorderRadius; +/* Disabled */ +@disabledLabelOpacity: @disabledOpacity; + /* Error */ @formErrorColor: @negativeTextColor; @formErrorBorder: @negativeBorderColor;