diff --git a/components/rate/style/index.less b/components/rate/style/index.less index 5c93a12d9..10abfd7c6 100644 --- a/components/rate/style/index.less +++ b/components/rate/style/index.less @@ -17,6 +17,7 @@ &-disabled &-star { cursor: default; + &:hover { transform: scale(1); } @@ -33,16 +34,20 @@ } > div { - transition: all 0.3s; + transition: all 0.3s, outline 0s; &:hover, &:focus-visible { transform: @rate-star-hover-scale; } - &:focus:not(:focus-visible) { + &:focus { outline: 0; } + + &:focus-visible { + outline: 1px dashed @rate-star-color; + } } &-first, diff --git a/components/rate/style/index.ts b/components/rate/style/index.tsx similarity index 100% rename from components/rate/style/index.ts rename to components/rate/style/index.tsx diff --git a/components/result/style/index.less b/components/result/style/index.less index f8e800578..78cb70b82 100644 --- a/components/result/style/index.less +++ b/components/result/style/index.less @@ -1,4 +1,4 @@ -@import '../../style/themes/default'; +@import '../../style/themes/index'; @import '../../style/mixins/index'; @result-prefix-cls: ~'@{ant-prefix}-result'; @@ -55,6 +55,7 @@ &-extra { margin: @result-extra-margin; text-align: center; + > * { margin-right: 8px; diff --git a/components/result/style/index.ts b/components/result/style/index.tsx similarity index 100% rename from components/result/style/index.ts rename to components/result/style/index.tsx diff --git a/components/result/style/rtl.less b/components/result/style/rtl.less index 3b286b749..a2eea06d2 100644 --- a/components/result/style/rtl.less +++ b/components/result/style/rtl.less @@ -1,4 +1,4 @@ -@import '../../style/themes/default'; +@import '../../style/themes/index'; @import '../../style/mixins/index'; @result-prefix-cls: ~'@{ant-prefix}-result'; diff --git a/components/row/style/index.ts b/components/row/style/index.tsx similarity index 100% rename from components/row/style/index.ts rename to components/row/style/index.tsx