From 759f7a1c550b4e3d415d88e539c1633de37859e7 Mon Sep 17 00:00:00 2001 From: HeskeyBaozi Date: Wed, 25 Jul 2018 11:45:42 +0800 Subject: [PATCH] use svg close icon in drawer. --- components/drawer/index.tsx | 5 ++++- components/drawer/style/drawer.less | 6 ------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/components/drawer/index.tsx b/components/drawer/index.tsx index 798cf9f65c..4588ceb25a 100644 --- a/components/drawer/index.tsx +++ b/components/drawer/index.tsx @@ -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 = createReactContext(null); @@ -136,7 +137,9 @@ export default class Drawer extends React.Component { aria-label="Close" className={`${prefixCls}-close`} > - + + + ); } diff --git a/components/drawer/style/drawer.less b/components/drawer/style/drawer.less index d6b6794dcc..27d36aec74 100644 --- a/components/drawer/style/drawer.less +++ b/components/drawer/style/drawer.less @@ -101,12 +101,6 @@ height: 56px; line-height: 56px; font-size: @font-size-lg; - - &:before { - content: "\e633"; - display: block; - font-family: "anticon" !important; - } } &:focus,