You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(notification-banner): support long polling and css custom variables (#158)
* feat: enhanced banner to support custom styling
* Added long polling feature
* fixes lint errors
* Added validation for new props, updated vss var name, fixed documentation
Bootstrap variant of 'alert' component to style notification items. Default is 'info'. Can be set to 'custom' to add 'alert-custom' class which will allow styling according to theming section below.
Currently this component supports [CSS Variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables) for overriding button colors. Defining the following variables will change the colors for the component accordingly. They will fall back to the colors described below.
96
+
97
+
You should define this in your custom stylesheet.
98
+
99
+
```css
100
+
:root {
101
+
--notif-banner-heading-text-color: white; /* text color of notification item heading */
102
+
--notif-banner-body-text-color: white; /* text color of notification item body */
103
+
--notif-banner-bg-color: darkred; /* background color of notification items */
104
+
--notif-banner-border-color: darkred; /* border color of notification items */
105
+
--notif-banner-border-radius: 0; /* border radius of notification items */
106
+
--notif-banner-item-margin: 001px0; /* margin between notification items */
107
+
--notif-banner-container-margin: 0; /* margin around notification item list */
0 commit comments