Skip to content

Commit

Permalink
[Alert] Nest children in DIV instead of P to avoid invalid DOM struct…
Browse files Browse the repository at this point in the history
…ures (#322)

Closes #321 #317
  • Loading branch information
meissadia committed Mar 28, 2024
1 parent de421e2 commit 7e99e5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Alert/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ export const Alert = ({
</p>
) : null}
{children ? (
<p className='m-notification_explanation' data-testid='explanation'>
<div className='m-notification_explanation' data-testid='explanation'>
{children}
</p>
</div>
) : null}
{links && links.length > 0 ? (
<ul className='m-list m-list__links'>
Expand Down

0 comments on commit 7e99e5d

Please sign in to comment.