From f3a07ac7add327dea3a6e9b7803cbff5912d99eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Sun, 24 Mar 2019 19:50:58 +0800 Subject: [PATCH] :bug: Fix disabled and selected date cell style of DatePicker (#15608) close #15580 --- components/date-picker/style/Calendar.less | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/components/date-picker/style/Calendar.less b/components/date-picker/style/Calendar.less index ba0c4c4f76..2a8cdc5462 100644 --- a/components/date-picker/style/Calendar.less +++ b/components/date-picker/style/Calendar.less @@ -230,6 +230,7 @@ } &-disabled-cell &-date { + position: relative; width: auto; color: @disabled-color; background: @disabled-bg; @@ -241,6 +242,18 @@ background: @disabled-bg; } } + + &-disabled-cell&-selected-day &-date::before { + position: absolute; + top: -1px; + left: 5px; + width: 24px; + height: 24px; + background: rgba(0, 0, 0, 0.1); + border-radius: @border-radius-sm; + content: ''; + } + &-disabled-cell&-today &-date { position: relative; padding-right: 5px;