Closed ppazos closed 4 years ago
Add custom css in your stylesheet
.customcss .ui-pnotify-title {
margin-bottom: 0 !important;
}
Use addClass option to supply css class
PNotify.info({
title: "Button Clicked",
addClass: 'customcss',
});
@aasiph thanks, I think correct alignment would be handled by the library by default.
This is fixed in v5 (yet to be released as of this comment).
I'm using notifications with title only, titles have a class that adds a margin-bottom, that makes the space below the text greater than the space above, making the text in the notification to appear not aligned vertically.
It would be better to add a margin-top to the contents of the notification when there are contents, instead of adding the margin bottom to the title.
Current:
Expected: