Skip to content

Fix Alert explanation wrapper for rich children#612

Open
arpitjain099 wants to merge 1 commit into
cfpb:mainfrom
arpitjain099:chore/fix-alert-children-warning-317
Open

Fix Alert explanation wrapper for rich children#612
arpitjain099 wants to merge 1 commit into
cfpb:mainfrom
arpitjain099:chore/fix-alert-children-warning-317

Conversation

@arpitjain099

Copy link
Copy Markdown

Fixes #317.

This keeps plain text explanations rendered as a paragraph, but switches rich children to a div wrapper so consumers can pass lists or other block content without React nesting warnings.

I also added regression tests for both text and rich explanation content.

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Alert] React Warning - Children of <p>

1 participant