Fix some icon detail in new svg icons

This commit is contained in:
afc163 2018-09-03 00:25:23 +08:00
parent fd61989852
commit 30dbd310f2
2 changed files with 4 additions and 7 deletions

View File

@ -183,12 +183,9 @@
.@{dropdown-prefix-cls}-trigger,
.@{dropdown-prefix-cls}-link {
.@{iconfont-css-prefix} {
.@{iconfont-css-prefix}:not(.@{iconfont-css-prefix}-ellipsis) {
.iconfont-size-under-12px(10px);
}
.@{iconfont-css-prefix}-ellipsis {
text-shadow: 0 0 currentColor;
}
}
.@{dropdown-prefix-cls}-button {
@ -198,7 +195,7 @@
padding-left: @padding-xs;
padding-right: @padding-xs;
}
.@{iconfont-css-prefix} {
.@{iconfont-css-prefix}:not(.@{iconfont-css-prefix}-ellipsis) {
.iconfont-size-under-12px(10px);
}
}

View File

@ -89,9 +89,9 @@ export default class Progress extends React.Component<ProgressProps, {}> {
if (format || (progressStatus !== 'exception' && progressStatus !== 'success')) {
text = textFormatter(validProgress(percent), validProgress(successPercent));
} else if (progressStatus === 'exception') {
text = <Icon type={`close${iconType}`} />;
text = <Icon type={`close${iconType}`} theme="filled" />;
} else if (progressStatus === 'success') {
text = <Icon type={`check${iconType}`} />;
text = <Icon type={`check${iconType}`} theme="filled" />;
}
progressInfo = <span className={`${prefixCls}-text`}>{text}</span>;
}