Browse Source

Fix #2253, improper disabled form field rules

pull/2300/head
jlukic 9 years ago
parent
commit
7a4e1611bc
2 changed files with 8 additions and 5 deletions
  1. 10
      src/definitions/collections/form.less
  2. 3
      src/themes/default/collections/form.variables

10
src/definitions/collections/form.less

@ -516,18 +516,18 @@
Disabled 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 { .ui.form .field.disabled label {
opacity: 0.5;
opacity: @disabledLabelOpacity;
} }
.ui.form .field.disabled :disabled { .ui.form .field.disabled :disabled {
opacity: 1; opacity: 1;
} }
/*-------------- /*--------------
Loading Loading
---------------*/ ---------------*/

3
src/themes/default/collections/form.variables

@ -98,6 +98,9 @@
@textAreaFocusBoxShadow: @inputFocusBoxShadow; @textAreaFocusBoxShadow: @inputFocusBoxShadow;
@textAreaFocusBorderRadius: @inputFocusBorderRadius; @textAreaFocusBorderRadius: @inputFocusBorderRadius;
/* Disabled */
@disabledLabelOpacity: @disabledOpacity;
/* Error */ /* Error */
@formErrorColor: @negativeTextColor; @formErrorColor: @negativeTextColor;
@formErrorBorder: @negativeBorderColor; @formErrorBorder: @negativeBorderColor;

Loading…
Cancel
Save