Fix alert icons style

pull/1287/head
afc163 9 years ago
parent dafd25dd7c
commit 7cee16d153

@ -52,7 +52,7 @@ export default React.createClass({
iconType = 'info-circle'; iconType = 'info-circle';
break; break;
case 'error': case 'error':
iconType = 'exclamation-circle'; iconType = 'cross-circle';
break; break;
case 'warn': case 'warn':
iconType = 'exclamation-circle'; iconType = 'exclamation-circle';

@ -30,7 +30,7 @@ function notice(content, duration = defaultDuration, type, onClose) {
let iconType = ({ let iconType = ({
info: 'info-circle', info: 'info-circle',
success: 'check-circle', success: 'check-circle',
error: 'exclamation-circle', error: 'cross-circle',
warn: 'exclamation-circle', warn: 'exclamation-circle',
loading: 'loading' loading: 'loading'
})[type]; })[type];

@ -20,7 +20,7 @@ AntModal.success = function (props) {
AntModal.error = function (props) { AntModal.error = function (props) {
const config = objectAssign({}, props, { const config = objectAssign({}, props, {
iconClassName: 'exclamation-circle', iconClassName: 'cross-circle',
okCancel: false, okCancel: false,
}); });
return confirm(config); return confirm(config);

@ -39,10 +39,10 @@ function notice(args) {
iconType = 'info-circle-o'; iconType = 'info-circle-o';
break; break;
case 'error': case 'error':
iconType = 'exclamation-circle-o'; iconType = 'cross-circle-o';
break; break;
case 'warn': case 'warn':
iconType = 'question-circle-o'; iconType = 'exclamation-circle-o';
break; break;
default: default:
iconType = 'info-circle'; iconType = 'info-circle';

@ -69,7 +69,7 @@ export default React.createClass({
<div> <div>
<div className={`${prefixCls}-inner-content`}> <div className={`${prefixCls}-inner-content`}>
<div className={`${prefixCls}-message`}> <div className={`${prefixCls}-message`}>
<Icon type="exclamation-circle" /> <Icon type="question-circle" />
<div className={`${prefixCls}-message-title`}>{title}</div> <div className={`${prefixCls}-message-title`}>{title}</div>
</div> </div>
<div className={`${prefixCls}-buttons`}> <div className={`${prefixCls}-buttons`}>

@ -103,7 +103,7 @@
font-size: 12px; font-size: 12px;
color: @text-color; color: @text-color;
> .anticon { > .anticon {
color: @error-color; color: @warning-color;
line-height: 17px; line-height: 17px;
position: absolute; position: absolute;
} }

Loading…
Cancel
Save