Skip to content

Commit d994332

Browse files
committed
SLDSUtility Icon refactoring
1 parent 3f1af43 commit d994332

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

components/SLDSIcon/index.jsx renamed to components/SLDSUtilityIcon/index.jsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ import SVG from './SVG';
1717

1818
module.exports = React.createClass( {
1919

20-
onClick() {
21-
this.setState({ active: !this.state.active });
22-
},
23-
2420
render () {
25-
return <SVG name='adduser' className='slds-input__icon slds-icon-text-default' width={100} height={100} />;
21+
return <SVG {...this.props} />;
2622
}
2723
});

demo/pages/HomePage/IconSection.jsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import React from 'react';
1313
import SLDSButton from '../../../components/SLDSButton';
1414
import {ButtonIcon, Icon} from "./../../../components/SLDSIcons";
1515
import {default as PrismCode} from "react-prism/lib/PrismCode";
16-
import SLDSIcon from '../../../components/SLDSIcon';
16+
import SLDSUtilityIcon from '../../../components/SLDSUtilityIcon';
1717

1818

1919

@@ -42,11 +42,10 @@ module.exports = React.createClass( {
4242
<h3 className='slds-text-heading--medium slds-truncate'>
4343
Utility Icon
4444
</h3>
45-
{/*
46-
47-
*/}
4845
<div className='slds-p-vertical--large'>
49-
<SLDSIcon name='adduser'/>
46+
<div className='slds-input-has-icon slds-input-has-icon--right'>
47+
<SLDSUtilityIcon name='adduser' className='slds-input__icon slds-icon-text-default'/>
48+
</div>
5049
</div>
5150
</div>
5251

0 commit comments

Comments
 (0)