diff --git a/components/icon/demo/basic.md b/components/icon/demo/basic.md index 285b0fd385..2afcbad599 100644 --- a/components/icon/demo/basic.md +++ b/components/icon/demo/basic.md @@ -28,9 +28,9 @@ ReactDOM.render( ); ```` -```css + diff --git a/components/icon/demo/iconfont.md b/components/icon/demo/iconfont.md index a1d4258218..4ca0c6e1a2 100644 --- a/components/icon/demo/iconfont.md +++ b/components/icon/demo/iconfont.md @@ -29,10 +29,3 @@ ReactDOM.render( mountNode ); ```` - -```css -.icons-list > .anticon { - margin-right: 6px; - font-size: 16px; -} -``` diff --git a/components/icon/demo/two-tone.md b/components/icon/demo/two-tone.md index 6dd4b9913a..d98825c830 100644 --- a/components/icon/demo/two-tone.md +++ b/components/icon/demo/two-tone.md @@ -25,10 +25,3 @@ ReactDOM.render( mountNode ); ```` - -```css -.icons-list > .anticon { - margin-right: 6px; - font-size: 16px; -} -``` diff --git a/components/icon/index.tsx b/components/icon/index.tsx index 063ebf0f7d..a68de59843 100755 --- a/components/icon/index.tsx +++ b/components/icon/index.tsx @@ -117,11 +117,6 @@ const Icon: React.SFC = (props) => { if (theme) { computedType = withThemeSuffix(type, theme); } - // default outlined - const computedType = withThemeSuffix( - getTypeWithoutTheme(type), - theme || 'outlined', - ); return (