Skip to content

Commit

Permalink
chore: set margin-left for close-icon to auto
Browse files Browse the repository at this point in the history
  • Loading branch information
shayan-deriv committed Mar 6, 2024
1 parent 7d719f1 commit ae9ec5e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions lib/components/Modal/Modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
&--no-border {
border-bottom: none;
}
&--justify-end{
justify-content: flex-end;
}
}
&__title {
font-size: 20px;
Expand All @@ -31,6 +28,7 @@
&__close-icon {
cursor: pointer;
margin: 8px;
margin-left: auto;
}
}

Expand Down
1 change: 0 additions & 1 deletion lib/components/Modal/ModalHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export const ModalHeader = ({ children, hideCloseIcon, className, onRequestClose
return (
<div className={clsx('deriv-modal__header', {
'deriv-modal__header--no-border': hideBorder,
'deriv-modal__header--justify-end': !children,
}, className)} {...rest}>
{children}
{!hideCloseIcon && <CloseIcon data-testid="dt-close-icon" onClick={onRequestClose} className="deriv-modal__close-icon" />}
Expand Down

0 comments on commit ae9ec5e

Please sign in to comment.