Skip to content

Commit

Permalink
[C-3571] Fix modal header styles (#7091)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjeffers authored Jan 5, 2024
1 parent 3e22ea8 commit d162abc
Show file tree
Hide file tree
Showing 18 changed files with 8 additions and 73 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.icon path {
fill: var(--neutral);
}

.footer {
column-gap: var(--unit-4);
padding: var(--unit-6);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@ export const PublishConfirmationModal = (
return (
<Modal {...other} size='small'>
<ModalHeader>
<ModalTitle
title={messages.title}
icon={<IconRocket className={styles.icon} />}
/>
<ModalTitle title={messages.title} icon={<IconRocket />} />
</ModalHeader>
<ModalContent>
<ModalContentText>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
flex-direction: column;
}

.icon path {
fill: var(--neutral);
}

.saveButton {
margin: auto;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,7 @@ export const InboxSettingsModal = () => {
isOpen={isVisible}
>
<ModalHeader onClose={handleClose}>
<ModalTitle
title={messages.title}
icon={<IconMessage className={styles.icon} />}
/>
<ModalTitle title={messages.title} icon={<IconMessage />} />
</ModalHeader>
<ModalContent className={styles.modalContent}>
<RadioButtonGroup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
max-width: 480px;
}

.icon path {
fill: var(--neutral);
}

.content {
line-height: 130%;
font-size: var(--font-l);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,7 @@ export const InboxUnavailableModal = () => {
onClosed={onClosed}
>
<ModalHeader onClose={handleCancel}>
<ModalTitle
icon={<IconMessageLocked className={styles.icon} />}
title={messages.title}
/>
<ModalTitle icon={<IconMessageLocked />} title={messages.title} />
</ModalHeader>
<ModalContent className={styles.content}>{content}</ModalContent>
<ModalFooter className={styles.footer}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,7 @@ export const LeavingAudiusModal = () => {
size={'small'}
>
<ModalHeader>
<ModalTitle
iconClassName={styles.icon}
icon={<Icon icon={IconInfo} />}
title={messages.title}
/>
<ModalTitle icon={<Icon icon={IconInfo} />} title={messages.title} />
</ModalHeader>
<ModalContent className={styles.content}>
<Text>{messages.body}</Text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@
height: var(--unit-5);
}

.modalTitleIcon path {
fill: var(--neutral-light-2);
}

.modalContent {
align-self: stretch;
display: flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@
height: var(--unit-5);
}

.remixSettingsModalTitleIcon path {
fill: var(--neutral-light-2);
}

.modalTitle {
color: var(--neutral);
font-size: var(--font-l);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@
flex: 1;
}

.icon path {
fill: var(--neutral);
}

.iconLight {
/* Fixes vertical alignment inside IconButton */
display: block;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export const SearchUsersModal = (props: SearchUsersModalProps) => {
return (
<Modal isOpen={isOpen} onClose={handleClose} onClosed={onClosed}>
<ModalHeader onClose={handleCancel}>
<ModalTitle iconClassName={styles.icon} {...titleProps}></ModalTitle>
<ModalTitle {...titleProps}></ModalTitle>
</ModalHeader>
<div className={styles.modalContent}>
<div className={styles.search}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
margin-right: var(--unit-2);
}

.titleIcon path {
fill: var(--neutral);
}

.title {
font-size: var(--font-xl);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
max-width: 488px;
}

.icon path {
fill: var(--neutral-light-2);
}

.button {
flex: 1;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,7 @@ export const BlockUserConfirmationModal = ({
return (
<Modal bodyClassName={styles.root} isOpen={isVisible} onClose={onClose}>
<ModalHeader>
<ModalTitle
title={messages.title}
icon={<IconBlockMessages />}
iconClassName={styles.icon}
/>
<ModalTitle title={messages.title} icon={<IconBlockMessages />} />
</ModalHeader>
<ModalContent className={styles.content}>
<div>{messages.content(user, isReportAbuse)}</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
max-width: 488px;
}

.icon path {
fill: var(--neutral-light-2);
}

.button {
flex: 1;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,7 @@ export const DeleteChatConfirmationModal = ({
return (
<Modal bodyClassName={styles.root} isOpen={isVisible} onClose={onClose}>
<ModalHeader>
<ModalTitle
title={messages.title}
icon={<IconTrash />}
iconClassName={styles.icon}
/>
<ModalTitle title={messages.title} icon={<IconTrash />} />
</ModalHeader>
<ModalContent className={styles.content}>{messages.content}</ModalContent>
<ModalFooter className={styles.footer}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
max-width: 488px;
}

.icon path {
fill: var(--neutral-light-2);
}

.button {
flex: 1;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@ export const UnblockUserConfirmationModal = ({
return (
<Modal bodyClassName={styles.root} isOpen={isVisible} onClose={onClose}>
<ModalHeader>
<ModalTitle
title={messages.title}
icon={<IconUnblockMessages />}
iconClassName={styles.icon}
/>
<ModalTitle title={messages.title} icon={<IconUnblockMessages />} />
</ModalHeader>
<ModalContent className={styles.content}>
{messages.content(user)}
Expand Down

0 comments on commit d162abc

Please sign in to comment.