From d6c6b6896bf8ee2fa6bf4742c90fd43742f66c46 Mon Sep 17 00:00:00 2001 From: jlukic Date: Mon, 10 Aug 2015 17:36:34 -0400 Subject: [PATCH] #2694 adds disabled state for input --- RELEASE-NOTES.md | 1 + src/definitions/elements/input.less | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index a7a9eb982..534bc37f6 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -9,6 +9,7 @@ - **Label** - Added `basic` label variation, useful for item counts - **Button** - Added `labeled button` variation for display a count next to a button. - **Divider** - Vertical divider can now be used multiple times in a single column row (not just 50/50 split). #2808 +- **Input** - Added `disabled` state for inputs #2694 **Additional Enhancements** - **Menu** - `text menu` now uses padding for hitboxes to make target area for links larger diff --git a/src/definitions/elements/input.less b/src/definitions/elements/input.less index 55735e9c3..99051fa33 100755 --- a/src/definitions/elements/input.less +++ b/src/definitions/elements/input.less @@ -78,6 +78,19 @@ States *******************************/ +/*-------------------- + Disabled +---------------------*/ + +.ui.disabled.input, +.ui.input input[disabled] { + opacity: @disabledOpacity; +} + +.ui.disabled.input input { + pointer-events: none; +} + /*-------------------- Active ---------------------*/