Skip to content

Commit d91df55

Browse files
committed
Add spacing around selected items icons
1 parent f1da055 commit d91df55

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

components/SLDSLookup/index.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import React, { Component } from "react";
1111
import Menu from "./Menu";
1212
import SLDSPopover from "../SLDSPopover";
13-
import {Icon, InputIcon} from "./../SLDSIcons";
13+
import {ButtonIcon, Icon, InputIcon} from "./../SLDSIcons";
1414
import SLDSButton from "../SLDSButton";
1515
import {KEYS,EventUtil} from "../utils";
1616
import escapeRegExp from "lodash.escaperegexp";
@@ -320,7 +320,7 @@ class SLDSLookup extends React.Component {
320320
let selectedItem = this.props.items[this.state.selectedIndex].label;
321321
return <span tabIndex="0" className="slds-pill" ref={"pill-" + this.state.selectedIndex} onKeyDown={this.handlePillKeyDown.bind(this)}>
322322
<span className="slds-pill__label">
323-
<Icon category={this.props.iconCategory} name={this.props.iconName?this.props.iconName:this.props.type} className={this.props.iconClasses} />
323+
<Icon category={this.props.iconCategory} name={this.props.iconName?this.props.iconName:this.props.type} className={"slds-m-right--x-small " + this.props.iconClasses} />
324324
{selectedItem}
325325
</span>
326326
<SLDSButton
@@ -331,6 +331,7 @@ class SLDSLookup extends React.Component {
331331
iconSize="medium"
332332
onClick={this.handleDeleteSelected.bind(this)}
333333
ref="clearSelectedItemButton"
334+
className="slds-m-left--x-small "
334335
/>
335336
</span>
336337
}

0 commit comments

Comments
 (0)