diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index a7a9eb9821..534bc37f6b 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 55735e9c36..99051fa335 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 ---------------------*/