Browse Source

🐛 Fix Carousel tabindex in non-active slide

close #23294
pull/23382/head
afc163 5 years ago
parent
commit
4751d109e3
  1. 11
      components/carousel/style/index.less

11
components/carousel/style/index.less

@ -31,8 +31,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;
}
}
}
}

Loading…
Cancel
Save