use svg close icon in drawer.

This commit is contained in:
HeskeyBaozi 2018-07-25 11:45:42 +08:00
parent 62aff06067
commit 759f7a1c55
2 changed files with 4 additions and 7 deletions

View File

@ -3,6 +3,7 @@ import RcDrawer from 'rc-drawer';
import PropTypes from 'prop-types';
import createReactContext, { Context } from 'create-react-context';
import isNumeric from '../_util/isNumeric';
import Icon from '../icon';
const DrawerContext: Context<Drawer | null> = createReactContext(null);
@ -136,7 +137,9 @@ export default class Drawer extends React.Component<DrawerProps, IDrawerState> {
aria-label="Close"
className={`${prefixCls}-close`}
>
<span className={`${prefixCls}-close-x`} />
<span className={`${prefixCls}-close-x`}>
<Icon type="close"/>
</span>
</button>
);
}

View File

@ -101,12 +101,6 @@
height: 56px;
line-height: 56px;
font-size: @font-size-lg;
&:before {
content: "\e633";
display: block;
font-family: "anticon" !important;
}
}
&:focus,