Skip to content

Commit

Permalink
Alert: support "error" as an alias for "danger"
Browse files Browse the repository at this point in the history
  • Loading branch information
jossmac committed Sep 4, 2015
1 parent 306e033 commit b447ac6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion less/components/Alert.less
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
.Alert--warning {
.alert-variant(@app-warning);
}
.Alert--danger {
.Alert--danger,
.Alert--error {
.alert-variant(@app-danger);
}
1 change: 1 addition & 0 deletions src/components/Alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ var classNames = require('classnames');

var ALERT_TYPES = [
'danger',
'error', // alias for danger
'info',
'primary',
'success',
Expand Down

0 comments on commit b447ac6

Please sign in to comment.