Notifications are used to display global information, our notification variants consist of default, caution, negative or positive.
You can also include a close button using the
p-icon--close pattern, although you will need to implement the click function yourself.
The default variant should be used to display global messages.
The caution variant should be used to convey information that is not critical but the user should be aware of.
The negative variant should be used to convey information that is critical and the user should take action.
The positive variant should be used to convey success or completion.
The information variant should be used to convey an information message.
Notifications have the ability to add an action link to them. These should appear inline with the notification response and will add a margin between the link and content.
Note:All functionality must be developed independently.
To import just this component into your project, copy the snippet below and include it in your main Sass file.
@import 'patterns_notifications'; @include vf-p-notification;
For more information see Customising Vanilla in your projects, which includes overrides and importing instructions.
For more information view the notification design spec which includes the specification in markdown format and a PNG image.