From 665faf0ebd82b4d63f04f5ce7d39a92cd4ec2fc4 Mon Sep 17 00:00:00 2001 From: AC-0308 Date: Tue, 9 Dec 2025 19:32:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(ORate):=20=F0=9F=90=9B=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?ORate=E8=87=AA=E5=AE=9A=E4=B9=89icon=E6=97=B6=E5=85=BC=E5=AE=B9?= =?UTF-8?q?path=E5=A4=96=E7=9A=84=E6=9B=B4=E5=A4=9A=E5=85=83=E7=B4=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/opendesign/src/rate/style/index.scss | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/packages/opendesign/src/rate/style/index.scss b/packages/opendesign/src/rate/style/index.scss index b55752518..dea318232 100644 --- a/packages/opendesign/src/rate/style/index.scss +++ b/packages/opendesign/src/rate/style/index.scss @@ -19,7 +19,7 @@ &.is-half { .o-rate-icon-top { svg { - path:nth-child(2) { + > *:nth-child(2) { color: var(--rate-color-selected); } } @@ -29,7 +29,7 @@ &.is-full { .o-rate-icon-bottom { svg { - path { + > * { color: var(--rate-color-selected); } } @@ -43,7 +43,7 @@ .o-rate-icon { svg { - path { + > * { transition: all var(--o-duration-m1) var(--o-easing-standard); } } @@ -57,19 +57,15 @@ overflow: hidden; svg { - path { - color: transparent; - } + color: transparent; } } .o-rate-icon-bottom { svg { - path { - color: transparent; - } + color: transparent; - path:nth-child(1) { + > *:nth-child(1) { color: var(--rate-color-selected); } } -- Gitee