You can use your own notifications design by rewriting the following classes
cdx-notifies
— wrapper for all notificationscdx-notify__btns-wrapper
— wrapper for buttons using in confirm and prompt types
cdx-notify__notification
— notification blockcdx-notify__cross
— notification cross button
cdx-notify__button
— general rules for buttonscdx-notify__button--confirm
— confirm button rulescdx-notify__button--cancel
— cancel button rulescdx-notify__input
— prompt input rules
cdx-notify--bounce-in
Passing style
property to show
method adds 'cdx-notifies__notification--' + style
class.
Using that feature you can create custom notification styles. We provide two styles example: error
and success
This is rules for our default success
notification
.cdx-notify--success {
background: #fafffe;
}
.cdx-notify__notification--success::before {
background: #41ffb1;
}