Skip to content

Commit 1809ea9

Browse files
fix(Quiz/AnswerIcon): fix neutral fill color
1 parent b8557fd commit 1809ea9

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/components/Quiz/QuizWidget/AnswerIcon.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ type AnswerIconProps = {
2020
* Defaults to the `TrophyIcon` prior to answering a question
2121
*/
2222
export const AnswerIcon = ({ answerStatus }: AnswerIconProps) => {
23-
const commonProps = {
24-
color: "neutral",
25-
}
23+
const commonIconClasses = "fill-background"
2624

2725
const IconWrapper = (props: ChildOnlyProp) => {
2826
const getWrapperBg = () => {
@@ -46,22 +44,22 @@ export const AnswerIcon = ({ answerStatus }: AnswerIconProps) => {
4644
if (!answerStatus) {
4745
return (
4846
<IconWrapper>
49-
<TrophyIcon {...commonProps} />
47+
<TrophyIcon className={commonIconClasses} />
5048
</IconWrapper>
5149
)
5250
}
5351

5452
if (answerStatus === "correct") {
5553
return (
5654
<IconWrapper>
57-
<CorrectIcon {...commonProps} />
55+
<CorrectIcon className={commonIconClasses} />
5856
</IconWrapper>
5957
)
6058
}
6159

6260
return (
6361
<IconWrapper>
64-
<IncorrectIcon {...commonProps} />
62+
<IncorrectIcon className={commonIconClasses} />
6563
</IconWrapper>
6664
)
6765
}

0 commit comments

Comments
 (0)