@@ -45,8 +45,9 @@ const FixedDot = ({
45
45
boxShadow = "tableItemBox"
46
46
position = "sticky"
47
47
bottom = { { base : `${ bottomOffset + 1 } rem` , lg : 4 } }
48
- ms = "auto "
48
+ me = "1rem "
49
49
mt = { { lg : "inherit" } }
50
+ insetStart = { `calc(100% - ${ size } )` }
50
51
insetEnd = { 4 }
51
52
zIndex = { 98 } /* Below the mobile menu */
52
53
display = "flex"
@@ -137,7 +138,7 @@ const FeedbackWidget = () => {
137
138
setIsExpanded ( false )
138
139
}
139
140
140
- // Dispay on English pages only
141
+ // Display on English pages only
141
142
if ( locale !== DEFAULT_LOCALE ) return null
142
143
143
144
return (
@@ -184,79 +185,85 @@ const FeedbackWidget = () => {
184
185
< AlertDialogOverlay >
185
186
< AlertDialogContent
186
187
position = "fixed"
187
- insetEnd = { { base : 4 , sm : 8 } }
188
- insetStart = { { base : 4 , sm : "auto" } }
189
- bottom = { { base : `${ bottomOffset + 5 } rem` , lg : 20 } }
190
- w = { { base : "auto" , sm : "300px" } }
191
- bgColor = "ednBackground"
192
- border = "1px"
193
- borderColor = "buttonColor"
188
+ maxW = { 1504 }
189
+ m = "auto"
190
+ alignItems = "flex-end"
191
+ backgroundColor = "transparent"
194
192
boxShadow = "tableItemBox"
195
- borderRadius = "base"
196
- py = "4"
197
- px = "2"
193
+ me = { 24 }
194
+ bottom = { { base : `${ bottomOffset + 5 } rem` , lg : 20 } }
198
195
>
199
- < AlertDialogCloseButton />
200
-
201
- < AlertDialogHeader
202
- fontSize = "xl"
203
- fontWeight = "bold"
204
- lineHeight = "6"
205
- textAlign = "center"
196
+ < Box
197
+ w = { { base : "auto" , sm : "300px" } }
198
+ bgColor = "ednBackground"
199
+ border = "1px"
200
+ borderColor = "buttonColor"
201
+ borderRadius = "base"
202
+ py = "4"
203
+ px = "2"
206
204
>
207
- { feedbackSubmitted
208
- ? t ( "feedback-widget-thank-you-title" )
209
- : t ( "feedback-widget-prompt" ) }
210
- </ AlertDialogHeader >
205
+ < AlertDialogCloseButton />
211
206
212
- { /* Body: */ }
213
- { feedbackSubmitted && (
214
- < >
215
- < AlertDialogBody
216
- fontWeight = "normal"
217
- fontSize = "md"
218
- lineHeight = "5"
219
- textAlign = "center"
220
- >
221
- { t ( "feedback-widget-thank-you-subtitle" ) }
222
- </ AlertDialogBody >
223
- < AlertDialogBody
224
- fontWeight = "bold"
225
- fontSize = "xs"
226
- lineHeight = "4"
227
- letterSpacing = "wide"
228
- color = "searchBorder"
229
- textAlign = "center"
230
- >
231
- { t ( "feedback-widget-thank-you-timing" ) }
232
- </ AlertDialogBody >
233
- </ >
234
- ) }
207
+ < AlertDialogHeader
208
+ fontSize = "xl"
209
+ fontWeight = "bold"
210
+ lineHeight = "6"
211
+ textAlign = "center"
212
+ >
213
+ { feedbackSubmitted
214
+ ? t ( "feedback-widget-thank-you-title" )
215
+ : t ( "feedback-widget-prompt" ) }
216
+ </ AlertDialogHeader >
235
217
236
- < AlertDialogFooter display = "flex" gap = "6" >
237
- { feedbackSubmitted ? (
238
- < Button onClick = { handleSurveyOpen } flex = { 1 } >
239
- { t ( "feedback-widget-thank-you-cta" ) }
240
- </ Button >
241
- ) : (
218
+ { /* Body: */ }
219
+ { feedbackSubmitted && (
242
220
< >
243
- < Button
244
- variant = "solid"
245
- onClick = { ( ) => handleSubmit ( true ) }
246
- flex = { 1 }
221
+ < AlertDialogBody
222
+ fontWeight = "normal"
223
+ fontSize = "md"
224
+ lineHeight = "5"
225
+ textAlign = "center"
247
226
>
248
- { t ( "yes" ) }
249
- </ Button >
250
- < Button
251
- variant = "solid"
252
- onClick = { ( ) => handleSubmit ( false ) }
253
- flex = { 1 }
227
+ { t ( "feedback-widget-thank-you-subtitle" ) }
228
+ </ AlertDialogBody >
229
+ < AlertDialogBody
230
+ fontWeight = "bold"
231
+ fontSize = "xs"
232
+ lineHeight = "4"
233
+ letterSpacing = "wide"
234
+ color = "searchBorder"
235
+ textAlign = "center"
254
236
>
255
- { t ( "no " ) }
256
- </ Button >
237
+ { t ( "feedback-widget-thank-you-timing " ) }
238
+ </ AlertDialogBody >
257
239
</ >
258
240
) }
259
- </ AlertDialogFooter >
241
+
242
+ < AlertDialogFooter display = "flex" gap = "6" >
243
+ { feedbackSubmitted ? (
244
+ < Button onClick = { handleSurveyOpen } flex = { 1 } >
245
+ { t ( "feedback-widget-thank-you-cta" ) }
246
+ </ Button >
247
+ ) : (
248
+ < >
249
+ < Button
250
+ variant = "solid"
251
+ onClick = { ( ) => handleSubmit ( true ) }
252
+ flex = { 1 }
253
+ >
254
+ { t ( "yes" ) }
255
+ </ Button >
256
+ < Button
257
+ variant = "solid"
258
+ onClick = { ( ) => handleSubmit ( false ) }
259
+ flex = { 1 }
260
+ >
261
+ { t ( "no" ) }
262
+ </ Button >
263
+ </ >
264
+ ) }
265
+ </ AlertDialogFooter >
266
+ </ Box >
260
267
</ AlertDialogContent >
261
268
</ AlertDialogOverlay >
262
269
</ AlertDialog >
0 commit comments