Browse Source

style: fix Rate focused style (#30451)

* style: fix Rate focused style

close #30449

* Apply suggestions from code review

Co-authored-by: xrkffgg <xrkffgg@gmail.com>

Co-authored-by: xrkffgg <xrkffgg@gmail.com>
pull/30461/head
afc163 4 years ago
committed by GitHub
parent
commit
7e8075b06b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      components/rate/style/index.less

11
components/rate/style/index.less

@ -27,21 +27,22 @@
display: inline-block;
color: inherit;
cursor: pointer;
transition: all 0.3s;
&:not(:last-child) {
margin-right: 8px;
}
> div {
&:focus {
outline: 0;
}
transition: all 0.3s;
&:hover,
&:focus {
&:focus-visible {
transform: @rate-star-hover-scale;
}
&:focus:not(:focus-visible) {
outline: 0;
}
}
&-first,

Loading…
Cancel
Save