Skip to content

Commit

Permalink
Toast: close icon fixed (#3371)
Browse files Browse the repository at this point in the history
* Toast close icon fixed

* Lint issue
  • Loading branch information
bahadirsofuoglu authored Sep 28, 2022
1 parent 46f5221 commit 5fc5825
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions components/lib/toast/ToastMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@ export const ToastMessage = React.memo(
const createCloseIcon = () => {
if (closable !== false) {
return (
<button type="button" className="p-toast-icon-close p-link" onClick={onClose} aria-label={localeOption('close')}>
<span className="p-toast-icon-close-icon pi pi-times" aria-hidden="true"></span>
<Ripple />
</button>
<div>
<button type="button" className="p-toast-icon-close p-link" onClick={onClose} aria-label={localeOption('close')}>
<span className="p-toast-icon-close-icon pi pi-times" aria-hidden="true"></span>
<Ripple />
</button>
</div>
);
}

Expand Down

0 comments on commit 5fc5825

Please sign in to comment.