Skip to content

Commit 8118bfc

Browse files
committed
feat: make rating empty by default
and remove hover effect
1 parent 99a2d8b commit 8118bfc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/modules/common/LikertScale.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ const LikertRating = styled(Rating)(({ theme }) => ({
2222
'& .MuiRating-iconFilled': {
2323
color: theme.palette.primary.main,
2424
},
25-
'& .MuiRating-iconHover': {
26-
color: theme.palette.primary.dark,
27-
},
2825
}));
2926

3027
const Label = styled(Typography)(() => ({
@@ -61,7 +58,7 @@ const LikertScale = (props: LikertScaleProps): JSX.Element => {
6158
</Label>
6259
<LikertRating
6360
name="likert-rating"
64-
value={value ?? Math.ceil(levels / 2)}
61+
value={value ?? 0}
6562
precision={1}
6663
icon={<RadioButtonCheckedIcon fontSize="inherit" />}
6764
emptyIcon={<RadioButtonUncheckedIcon fontSize="inherit" />}

0 commit comments

Comments
 (0)