Skip to content

Commit 567424b

Browse files
authored
improve syntax
1 parent 8b7fce8 commit 567424b

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

scss/_rating.scss

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,13 @@
1717
}
1818

1919
&:not(.disabled):not(.readonly) {
20-
.rating-item {
21-
.rating-item-label {
22-
cursor: pointer;
23-
}
24-
25-
&:hover {
26-
transform: var(--#{$prefix}rating-item-scale-transform);
27-
}
20+
.rating-item:hover {
21+
transform: var(--#{$prefix}rating-item-scale-transform);
22+
}
23+
24+
.rating-item-icon,
25+
.rating-item-label {
26+
cursor: pointer;
2827
}
2928
}
3029
}
@@ -49,7 +48,6 @@
4948
font-size: var(--#{$prefix}rating-item-height);
5049
line-height: 0;
5150
color: var(--#{$prefix}rating-item-color);
52-
cursor: default; // has cursor pointer only if the rating is not disabled or readonly (see above)
5351

5452
* {
5553
pointer-events: none;
@@ -85,7 +83,6 @@
8583
.rating-item-icon {
8684
width: var(--#{$prefix}rating-item-height);
8785
height: var(--#{$prefix}rating-item-height);
88-
//cursor: pointer; // has the cursor of rating-item-label (parent)
8986
background-color: var(--#{$prefix}rating-item-color);
9087
mask: var(--#{$prefix}rating-item-icon) center / var(--#{$prefix}rating-item-height) no-repeat;
9188
}

0 commit comments

Comments
 (0)