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';
break;
case 'error':
iconType = 'exclamation-circle';
iconType = 'cross-circle';
break;
case 'warn':
iconType = 'exclamation-circle';

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

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

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

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

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

Loading…
Cancel
Save