0.4.26 • Published 6 years ago
@zilverenkruis/alert v0.4.26
Alert
Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.
Design & API Documentation
Installation
npm install @zilverenkruis/button
Basic Usage
HTML Structure
<Alert bsStyle="warning" closeLabel="Sluiten" onDismiss>
<strong>Holy guacamole!</strong> Best check yo self, you're not looking too
good.
</Alert>
Styles
@import "@zilverenkruis/button"
Variants
Style Customization
CSS Classes
CSS Class | Description |
---|---|
c-alert | Mandatory. Defaults to an info alert. |
c-alert--success | Optional. Styles ... |
c-alert--success-2 | Optional. Styles ... |
c-alert--info | Optional. Styles ... |
c-alert--info-2 | Optional. Styles ... |
c-alert--warning | Optional. Styles ... |
c-alert--warning-2 | Optional. Styles ... |
c-alert--danger | Optional. Styles ... |
c-alert--danger-2 | Optional. Styles ... |
c-alert--no-radius | Optional. Styles ... |
c-alert--inside-top | Optional. Styles ... |
c-alert--inside-bottom | Optional. Styles ... |
c-alert--small | Optional. Styles ... |
c-alert--large | Optional. Styles ... |
Sass Mixins
To customize a button's color and properties, you can use the following mixins.
Basic Sass Mixins
MDC Button uses MDC Theme's primary
color by default. Use the following mixins to customize it.
Mixin | Description |
---|---|
mdc-button-filled-accessible($container-fill-color) | Sets the container fill color for a contained (raised or unelevated) button, and updates the button's ink, icon, and ripple colors to meet accessibility standards |
Advanced Sass Mixins
These mixins will override the color of the container, ink, outline or ripple. It is up to you to ensure your button meets accessibility standards.
Mixin | Description |
---|---|
mdc-button-container-fill-color($color) | Sets the container fill color to the given color. |
mdc-button-icon-color($color) | Sets the icon color to the given color. |
mdc-button-ink-color($color) | Sets the ink color to the given color, and sets the icon color to the given color unless mdc-button-icon-color is also used. |
mdc-button-corner-radius($corner-radius) | Sets the corner radius to the given number (defaults to 2px). |
mdc-button-horizontal-padding($padding) | Sets horizontal padding to the given number. |
mdc-button-outline-color($color) | Sets the outline color to the given color. |
mdc-button-outline-width($width, $padding) | Sets the outline width to the given number (defaults to 2px) and adjusts padding accordingly. $padding is only required in cases where mdc-button-horizontal-padding is also included with a custom value. |
Caveat: Edge and CSS Custom Properties
text...
0.4.26
6 years ago
0.4.25
6 years ago
0.4.24
6 years ago
0.4.23
6 years ago
0.4.22
6 years ago
0.4.21
6 years ago
0.4.20
6 years ago
0.4.19
6 years ago
0.4.17
6 years ago
0.4.16
6 years ago
0.4.14
6 years ago
0.4.11
6 years ago
0.4.10
6 years ago
0.4.9
6 years ago
0.4.7
7 years ago
0.4.6
7 years ago
0.4.5
7 years ago
0.4.4
7 years ago
0.4.3
7 years ago
0.4.2
7 years ago
0.4.1
7 years ago
0.4.0
7 years ago