From 7cee16d153f7824dff2ba5a9c058df00db3c0e5f Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 28 Mar 2016 16:09:13 +0800 Subject: [PATCH] Fix alert icons style --- components/alert/index.jsx | 2 +- components/message/index.jsx | 2 +- components/modal/index.jsx | 2 +- components/notification/index.jsx | 4 ++-- components/popconfirm/index.jsx | 2 +- style/components/popover.less | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/components/alert/index.jsx b/components/alert/index.jsx index ed3637d1e8..395d69f34a 100644 --- a/components/alert/index.jsx +++ b/components/alert/index.jsx @@ -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'; diff --git a/components/message/index.jsx b/components/message/index.jsx index 745356b680..e9671e8f75 100644 --- a/components/message/index.jsx +++ b/components/message/index.jsx @@ -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]; diff --git a/components/modal/index.jsx b/components/modal/index.jsx index c8ad51a0ac..9414934010 100644 --- a/components/modal/index.jsx +++ b/components/modal/index.jsx @@ -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); diff --git a/components/notification/index.jsx b/components/notification/index.jsx index 83ae2f6283..d585037958 100644 --- a/components/notification/index.jsx +++ b/components/notification/index.jsx @@ -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'; diff --git a/components/popconfirm/index.jsx b/components/popconfirm/index.jsx index 726276bc8b..8827bb9b5c 100644 --- a/components/popconfirm/index.jsx +++ b/components/popconfirm/index.jsx @@ -69,7 +69,7 @@ export default React.createClass({
- +
{title}
diff --git a/style/components/popover.less b/style/components/popover.less index b39ebbb130..586ad3e81e 100644 --- a/style/components/popover.less +++ b/style/components/popover.less @@ -103,7 +103,7 @@ font-size: 12px; color: @text-color; > .anticon { - color: @error-color; + color: @warning-color; line-height: 17px; position: absolute; }