Skip to content

Using CSS Classes

Targeting elements

While the theme approach is the recommended way to customize the look and feel of the built-in notifications, the inner elements can also be targeted using the following classes:

ClassBlockTagColumn
.Notivue__notificationNotification containerdiv-
.Notivue__iconSVG Iconsvg1
.Notivue__contentText Containerdiv2
.Notivue__content-titleTitleh32
.Notivue__content-messageMessagep2
.Notivue__closeButtonbutton3
.Notivue__close-iconClose Iconsvg3
css
.Notivue__content-message {
  max-height: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

To target each notification type, use the data-notivue attribute:

css
[data-notivue='error'] .Notivue__content-message {
  color: tomato;
}