Royal-Navy/design-system

Allow arbitrary content in Alert

jpveooys opened this issue · 0 comments

Description

Currently children in Alert is typed as string:

If there isn't a reason for that, it'd be helpful to allow arbitrary content. (The design for our app currently has alerts with more complex content.)

Note also that children is currently placed inside a p element. A p element only allows phrasing content as children, so some elements (div, ul, dl etc) are not valid children of p.