We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d88a0b commit d98a827Copy full SHA for d98a827
src/components/Dialog/Dialog.tsx
@@ -151,14 +151,20 @@ const DialogContent = ({
151
>
152
{showOverlay && <DialogOverlay />}
153
<ContentArea
154
+ data-testid="click-dialog-contentarea"
155
$reducePadding={reducePadding}
156
{...props}
157
158
{(title || showClose) && (
159
<>
160
<TitleArea $onlyClose={!!showClose && !title}>
- {title && <Title>{title}</Title>}
161
- {showClose && <CloseButton onClose={onClose} />}
+ {title && <Title data-testid="click-dialog-title">{title}</Title>}
162
+ {showClose && (
163
+ <CloseButton
164
+ data-testid="click-dialog-close"
165
+ onClose={onClose}
166
+ />
167
+ )}
168
</TitleArea>
169
<Spacer size="sm" />
170
</>
0 commit comments