From e7f75b81056144cd3b77b0c9629b9fd8e05c4f4f Mon Sep 17 00:00:00 2001 From: jlukic Date: Tue, 5 May 2015 18:28:00 -0400 Subject: [PATCH] #Fixes #2202, adds support for multiple button, dropdown in action input --- RELEASE-NOTES.md | 1 + src/definitions/elements/input.less | 20 +++++++++++++++----- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 61bddf079..a2e0dc411 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -66,6 +66,7 @@ - **Grid** - rows can now be `stretched` as well as `middle aligned`, `bottom aligned` and `top aligned`! - **Input** - Added placeholder color rules for IE, `ms-input-placeholder` +- **Input** - Action input now supports multiple buttons, and dropdown - **Label** - Labels now have `active` and `active hover` states - **Label** - Label now sets an `img` height even when not using an `image label` - **Menu** - Added `stackable` menu variation for simple responsive menus diff --git a/src/definitions/elements/input.less b/src/definitions/elements/input.less index e49eedd90..3fc91c6f5 100755 --- a/src/definitions/elements/input.less +++ b/src/definitions/elements/input.less @@ -374,19 +374,29 @@ border-top-right-radius: 0px !important; border-bottom-right-radius: 0px !important; } +.ui.action.input:not([class*="left action"]) > .dropdown, .ui.action.input:not([class*="left action"]) > .button, .ui.action.input:not([class*="left action"]) > .buttons > .button { - border-top-left-radius: 0px; - border-bottom-left-radius: 0px; + border-radius: 0px; +} +.ui.action.input:not([class*="left action"]) > .dropdown:last-child, +.ui.action.input:not([class*="left action"]) > .button:last-child, +.ui.action.input:not([class*="left action"]) > .buttons:last-child > .button { + border-radius: 0px @borderRadius @borderRadius 0px; } /* Button on Left */ +.ui[class*="left action"].input > .dropdown, .ui[class*="left action"].input > .button, .ui[class*="left action"].input > .buttons > .button { - border-top-right-radius: 0px; - border-bottom-right-radius: 0px; + border-radius: 0px; +} +.ui[class*="left action"].input > .dropdown:first-child, +.ui[class*="left action"].input > .button:first-child, +.ui[class*="left action"].input > .buttons:first-child > .button { + border-radius: @borderRadius 0px 0px @borderRadius; } -.ui[class*="left action"].input > input { +.ui[class*="left action"].input > input { border-left: none; border-top-left-radius: 0px; border-bottom-left-radius: 0px;