0.4.26 • Published 6 years ago

@zilverenkruis/alert v0.4.26

Weekly downloads
-
License
-
Repository
-
Last release
6 years ago

Alert

Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.

Design & API Documentation

zk's design guidelines: Alert

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 ClassDescription
c-alertMandatory. Defaults to an info alert.
c-alert--successOptional. Styles ...
c-alert--success-2Optional. Styles ...
c-alert--infoOptional. Styles ...
c-alert--info-2Optional. Styles ...
c-alert--warningOptional. Styles ...
c-alert--warning-2Optional. Styles ...
c-alert--dangerOptional. Styles ...
c-alert--danger-2Optional. Styles ...
c-alert--no-radiusOptional. Styles ...
c-alert--inside-topOptional. Styles ...
c-alert--inside-bottomOptional. Styles ...
c-alert--smallOptional. Styles ...
c-alert--largeOptional. 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.

MixinDescription
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.

MixinDescription
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