Skip to content

Commit

Permalink
Fix display property on RichTextEditor error toast (#9525)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnholtz authored Nov 15, 2024
1 parent 4af5865 commit 1b01808
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ const ErrorToast: React.FC<ErrorToastProps> = ({ error, onClose }) => (
animation={false}
delay={5000}
>
<span>
<FontAwesomeIcon className="mr-2" icon={faExclamationCircle} /> {error}
<Button variant="outline-danger" onClick={onClose}>
<FontAwesomeIcon icon={faTimes} />
</Button>
</span>
</Toast>
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,18 @@
}

.error {
display: flex !important;
align-items: center;
color: #dc3545;
padding: 4px 8px;
font-size: 0.875rem;
position: absolute;
bottom: 4px;
left: 4px;

span {
display: flex;
align-items: center;
}

:global(.btn) {
margin-left: 8px;
color: #dc3545;
Expand Down

0 comments on commit 1b01808

Please sign in to comment.