Adding support for "info"-type Messages

This commit is contained in:
Jeff Avallone 2018-05-24 17:42:07 -04:00
parent 1a8bb762cb
commit 031dc2235a
3 changed files with 16 additions and 0 deletions

View File

@ -3,10 +3,12 @@ import PropTypes from 'prop-types';
import style from './style.css';
import InfoIcon from 'feather-icons/dist/icons/info.svg';
import ErrorIcon from 'feather-icons/dist/icons/alert-octagon.svg';
import WarningIcon from 'feather-icons/dist/icons/alert-triangle.svg';
const iconTypes = {
info: InfoIcon,
error: ErrorIcon,
warning: WarningIcon
};
@ -36,6 +38,7 @@ const Message = ({ type, icon, heading, children }) => (
Message.propTypes = {
type: PropTypes.oneOf([
'info',
'error',
'warning'
]),

View File

@ -57,4 +57,16 @@
color: var(--color-orange);
}
}
&.info {
& .header {
background: var(--color-blue);
color: var(--color-white);
}
& svg {
background: var(--color-white);
color: var(--color-blue);
}
}
}

View File

@ -6,6 +6,7 @@
--color-white: #fff;
--color-red: #b3151a;
--color-orange: #fa0;
--color-blue: #025d8c;
--gradient-green: linear-gradient(to bottom,
var(--color-green) 0%,