Use same remove icon as in QuickAdd panel
This commit is contained in:
parent
df44a6223f
commit
ce1c389505
2 changed files with 27 additions and 5 deletions
|
@ -23,7 +23,7 @@ import { SketchSearchbar } from '../../IDE/components/Searchbar';
|
||||||
|
|
||||||
const arrowUp = require('../../../images/sort-arrow-up.svg');
|
const arrowUp = require('../../../images/sort-arrow-up.svg');
|
||||||
const arrowDown = require('../../../images/sort-arrow-down.svg');
|
const arrowDown = require('../../../images/sort-arrow-down.svg');
|
||||||
const trashCan = require('../../../images/trash-can.svg');
|
const removeIcon = require('../../../images/close.svg');
|
||||||
|
|
||||||
const ShareURL = ({ value }) => {
|
const ShareURL = ({ value }) => {
|
||||||
const [showURL, setShowURL] = React.useState(false);
|
const [showURL, setShowURL] = React.useState(false);
|
||||||
|
@ -75,7 +75,7 @@ class CollectionItemRowBase extends React.Component {
|
||||||
className="collection-row__remove-button"
|
className="collection-row__remove-button"
|
||||||
onClick={this.handleSketchRemove}
|
onClick={this.handleSketchRemove}
|
||||||
>
|
>
|
||||||
<InlineSVG src={trashCan} alt="Remove" />
|
<InlineSVG src={removeIcon} alt="Remove" />
|
||||||
</button>
|
</button>
|
||||||
</td>
|
</td>
|
||||||
</tr>);
|
</tr>);
|
||||||
|
|
|
@ -130,13 +130,35 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.collection-row__remove-button {
|
.collection-row__remove-button {
|
||||||
|
display: inline-block;
|
||||||
|
width:#{35 / $base-font-size}rem;
|
||||||
|
height:#{35 / $base-font-size}rem;
|
||||||
|
@include icon();
|
||||||
@include themify() {
|
@include themify() {
|
||||||
svg path {
|
// icon graphic
|
||||||
|
polygon {
|
||||||
|
fill: getThemifyVariable('table-button-color');
|
||||||
|
}
|
||||||
|
|
||||||
|
// icon background circle
|
||||||
|
path {
|
||||||
fill: getThemifyVariable('table-button-background-color');
|
fill: getThemifyVariable('table-button-background-color');
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover svg path {
|
& svg {
|
||||||
fill: getThemifyVariable('table-button-background-hover-color');
|
width:#{35 / $base-font-size}rem;
|
||||||
|
height:#{35 / $base-font-size}rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
polygon {
|
||||||
|
fill: getThemifyVariable('table-button-hover-color');
|
||||||
|
}
|
||||||
|
|
||||||
|
path {
|
||||||
|
fill: getThemifyVariable('table-button-background-hover-color');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue