From d0f780561ebc6d9db3c650d207daddbc55898596 Mon Sep 17 00:00:00 2001 From: Gabriel Cousin Date: Wed, 13 Jan 2016 22:08:18 +0100 Subject: [PATCH] Dropdown-select | add disabled state --- dist/css/tapestry.css | 6 ++++++ src/scss/components/dropdown/_select.scss | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/dist/css/tapestry.css b/dist/css/tapestry.css index 9bd047f4..2b93557d 100644 --- a/dist/css/tapestry.css +++ b/dist/css/tapestry.css @@ -1150,6 +1150,12 @@ th { border-color: #a1a9ae; } +.Dropdown-selectInput[disabled] { + color: #a1a9ae; + background: #d5d9da; + cursor: not-allowed; +} + .Dropdown-selectInput:focus { outline: none; } diff --git a/src/scss/components/dropdown/_select.scss b/src/scss/components/dropdown/_select.scss index 0967837f..135d8e5b 100644 --- a/src/scss/components/dropdown/_select.scss +++ b/src/scss/components/dropdown/_select.scss @@ -18,6 +18,12 @@ border-color: $gray-chateau; } + &[disabled] { + color: $gray-chateau; + background: $iron; + cursor: not-allowed; + } + &:focus { outline: none; }