Skip to content

Commit 846f422

Browse files
committed
adjust FeedbackWidget to match the modal styles
1 parent 69cefbd commit 846f422

File tree

1 file changed

+13
-19
lines changed

1 file changed

+13
-19
lines changed

src/components/FeedbackWidget/index.tsx

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
AlertDialogOverlay,
1010
Box,
1111
Button,
12+
HStack,
1213
} from "@chakra-ui/react"
1314

1415
import FixedDot from "./FixedDot"
@@ -50,33 +51,26 @@ const FeedbackWidget = () => {
5051
m="auto"
5152
alignItems="flex-end"
5253
backgroundColor="transparent"
53-
boxShadow="tableItemBox"
5454
me={24}
5555
bottom={{ base: `${bottomOffset + 5}rem`, lg: 20 }}
5656
data-testid="feedback-widget-modal"
57+
padding={0}
5758
>
5859
<Box
59-
w="min(300px, calc(100% - 1rem))"
60+
w="min(350px, calc(100% - 1rem))"
6061
mx="2"
61-
bgColor="ednBackground"
62-
border="1px"
63-
borderColor="background.base"
62+
bg="background.base"
6463
borderRadius="base"
65-
py="4"
66-
px="2"
64+
padding={{ base: "4", sm: "8" }}
6765
>
68-
<AlertDialogCloseButton />
69-
70-
<AlertDialogHeader
71-
fontSize="xl"
72-
fontWeight="bold"
73-
lineHeight="6"
74-
textAlign="center"
75-
>
76-
{feedbackSubmitted
77-
? t("feedback-widget-thank-you-title")
78-
: t("feedback-widget-prompt")}
79-
</AlertDialogHeader>
66+
<HStack>
67+
<AlertDialogHeader fontSize="xl" fontWeight="bold" me="0">
68+
{feedbackSubmitted
69+
? t("feedback-widget-thank-you-title")
70+
: t("feedback-widget-prompt")}
71+
</AlertDialogHeader>
72+
<AlertDialogCloseButton alignSelf="start" />
73+
</HStack>
8074

8175
{/* Body: */}
8276
{feedbackSubmitted && (

0 commit comments

Comments
 (0)