From 59c36965ea837476d348229a681976067c5e83c3 Mon Sep 17 00:00:00 2001 From: SimaQ Date: Tue, 20 Oct 2015 19:39:43 +0800 Subject: [PATCH] fix: fix slider disabled style bug. --- index.js | 14 +++++++------- style/components/slider.less | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/index.js b/index.js index ce8eaec4ec..25eaae08cb 100644 --- a/index.js +++ b/index.js @@ -3,14 +3,14 @@ require('./style/index.less'); // matchMedia polyfill for // https://github.com/WickyNilliams/enquire.js/issues/82 window.matchMedia = window.matchMedia || function () { - return { - matches: false, - addListener: function () { - }, - removeListener: function () { - } - }; + return { + matches: false, + addListener: function () { + }, + removeListener: function () { + } }; +}; const antd = { Affix: require('./components/affix'), diff --git a/style/components/slider.less b/style/components/slider.less index 20b213a7b4..940fcb8d7a 100644 --- a/style/components/slider.less +++ b/style/components/slider.less @@ -126,13 +126,13 @@ background-color: @slider-disabled-color !important; } - .@{slider-prefix-cls}-handle { - border-color: @slider-disabled-color; + .@{slider-prefix-cls}-handle, .@{slider-prefix-cls}-dot { + border-color: @slider-disabled-color!important; background-color: #fff; cursor: not-allowed; } - .@{slider-prefix-cls}-mark-text, .dot { + .@{slider-prefix-cls}-mark-text, .@{slider-prefix-cls}-dot { cursor: not-allowed!important; } }