-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update notification banner to be flexible in what it accepts #119
Comments
I think you should be able to do this now by passing in your content with a block:
|
Ah, nice. Is there an example of this usage in the docs? |
Not exactly, I'll try to get it updated at some point - the whole docs could do with a re-jig. |
oh yea i remember now sorry. I think i had this problem before and now going thru the same hoops due to my poor memory. to do the above we subclassed the component and override |
Ah! To be honest I think I added the |
This allows the notification banner to be used in a more-flexible manner but still prevents an empty one from being rendered. Fixes #119
The notification banner could include a variety of content. The API for this component should be as flexible as the design system's.
The following is not currently possible:
Suggestion:
html
param, to pass in and render any provided htmlLike:
https://design-system.service.gov.uk/components/notification-banner/
This is affecting this PR: DFE-Digital/get-help-with-tech#1410
The text was updated successfully, but these errors were encountered: