@@ -61,7 +61,7 @@ export const QuizRadioGroup = () => {
61
61
< Box as = "fieldset" w = "full" { ...getRootProps ( ) } >
62
62
< Text
63
63
as = "legend"
64
- textAlign = { { base : "center" , md : "start" } }
64
+ textAlign = "center"
65
65
fontWeight = "700"
66
66
size = "2xl"
67
67
w = "full"
@@ -73,32 +73,34 @@ export const QuizRadioGroup = () => {
73
73
{ t ( prompt ) }
74
74
</ Text >
75
75
76
- < Stack spacing = "4" >
77
- { answers . map ( ( { id, label } , idx ) => {
78
- const display =
79
- ! answerStatus || id === selectedAnswer ? "inline-flex" : "none"
80
-
81
- return (
82
- < Box key = { id } display = { display } >
83
- < CustomRadio
84
- label = { t ( label ) }
85
- isAnswerVisible = { ! ! answerStatus }
86
- isSelectedCorrect = { isSelectedCorrect }
87
- index = { idx }
88
- { ...getRadioProps ( { value : id } ) }
89
- />
90
- </ Box >
91
- )
92
- } ) }
93
- </ Stack >
94
-
95
- { ! ! answerStatus && (
96
- < Stack spacing = "2" mt = "6" >
97
- < Text fontWeight = "bold" > { t ( "explanation" ) } </ Text >
98
-
99
- < Text m = { 0 } > { t ( explanation ) } </ Text >
76
+ < Box px = { { base : "0" , md : "12" , lg : "16" } } >
77
+ < Stack spacing = "4" >
78
+ { answers . map ( ( { id, label } , idx ) => {
79
+ const display =
80
+ ! answerStatus || id === selectedAnswer ? "inline-flex" : "none"
81
+
82
+ return (
83
+ < Box key = { id } display = { display } >
84
+ < CustomRadio
85
+ label = { t ( label ) }
86
+ isAnswerVisible = { ! ! answerStatus }
87
+ isSelectedCorrect = { isSelectedCorrect }
88
+ index = { idx }
89
+ { ...getRadioProps ( { value : id } ) }
90
+ />
91
+ </ Box >
92
+ )
93
+ } ) }
100
94
</ Stack >
101
- ) }
95
+
96
+ { ! ! answerStatus && (
97
+ < Stack spacing = "2" mt = "6" >
98
+ < Text fontWeight = "bold" > { t ( "explanation" ) } </ Text >
99
+
100
+ < Text m = { 0 } > { t ( explanation ) } </ Text >
101
+ </ Stack >
102
+ ) }
103
+ </ Box >
102
104
</ Box >
103
105
)
104
106
}
0 commit comments