-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [TextIntroduction] Support ReactNode content in the `descriptio…
…n` (#339) Close #338 On SBL we have some descriptions that include lists (Errors page: download and upload links). I'm seeing console errors about nesting `ul`s within paragraphs. This PR basically renders `description` within a `<p>` tag if it's a string, otherwise renders it unchanged allowing us to pass more customized content. <img width="670" alt="Screenshot 2024-05-02 at 10 29 42 AM" src="https://github.com/cfpb/design-system-react/assets/2592907/9dc19fbb-e482-4c29-9594-dad207b0c631">
- Loading branch information
Showing
4 changed files
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters