Skip to content

Commit c5ed636

Browse files
committed
chore: remove icon from the DialogTitle when not wanted
1 parent 8666ada commit c5ed636

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

packages/core/src/Drawer/Drawer.stories.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ export const Main: StoryObj<HvDrawerProps> = {
7070
open={open}
7171
{...args}
7272
>
73-
<HvDialogTitle component="div" className={classes.drawerTitle}>
73+
<HvDialogTitle
74+
component="div"
75+
className={classes.drawerTitle}
76+
showIcon={false}
77+
>
7478
Lorem Ipsum
7579
</HvDialogTitle>
7680
<HvDialogContent className={classes.drawerContent}>

packages/core/src/FileUploader/FileUploader.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ export const WithPreviewThumbnails: StoryObj<HvFileUploaderProps> = {
306306
}}
307307
/>
308308
<HvDialog open={open} onClose={() => setOpen(false)}>
309-
<HvDialogTitle>{previewTitle}</HvDialogTitle>
309+
<HvDialogTitle showIcon={false}>{previewTitle}</HvDialogTitle>
310310
<HvDialogContent>
311311
<img
312312
alt="Preview of the uploaded file"

packages/core/src/QueryBuilder/ConfirmationDialog/ConfirmationDialog.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ export const ConfirmationDialog = ({
4545
firstFocusable="confirmation-dialog-cancel"
4646
buttonTitle={closeButtonTooltip}
4747
>
48-
<HvDialogTitle variant="warning">{title}</HvDialogTitle>
48+
<HvDialogTitle variant="warning" showIcon={false}>
49+
{title}
50+
</HvDialogTitle>
4951
<HvDialogContent indentContent>{message}</HvDialogContent>
5052
<HvDialogActions>
5153
<HvButton variant="primaryGhost" onClick={onConfirm}>

packages/lab/src/Wizard/WizardTitle/WizardTitle.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export const HvWizardTitle = ({
9494
classes.messageContainer,
9595
classes.titleContainer,
9696
)}
97+
showIcon={false}
9798
>
9899
{title && (
99100
<HvTypography variant="title3" component="div">

0 commit comments

Comments
 (0)