From 54d050324a10688542ab3ed56f5e3b8558e5b066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Sun, 19 Apr 2020 01:28:54 +0800 Subject: [PATCH] :bug: Fix Carousel tabindex in non-active slide (#23380) close #23294 --- components/carousel/style/index.less | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/components/carousel/style/index.less b/components/carousel/style/index.less index 722c76de87..41c11e3eac 100644 --- a/components/carousel/style/index.less +++ b/components/carousel/style/index.less @@ -33,8 +33,19 @@ .slick-slide { pointer-events: none; + // https://github.com/ant-design/ant-design/issues/23294 + input.@{ant-prefix}-radio-input, + input.@{ant-prefix}-checkbox-input { + visibility: hidden; + } + &.slick-active { pointer-events: auto; + + input.@{ant-prefix}-radio-input, + input.@{ant-prefix}-checkbox-input { + visibility: visible; + } } } }