Skip to content

Commit 432b188

Browse files
feat: prevent nested <p> tags when Alert contains elements
1 parent 54d8483 commit 432b188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Alert/Alert.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const KeystoneAlert = ({
9595
{type === 'local' && getIcon()}
9696
<div className="kds-alert-content">
9797
{title && <p className={titleClassName}>{title}</p>}
98-
<p className={messageClassName}>{children}</p>
98+
<div className={messageClassName}>{children}</div>
9999
</div>
100100
{type === 'local' && closeable && (
101101
<button

0 commit comments

Comments
 (0)