Use iconNode instead of pseudoclass for icon
This commit is contained in:
parent
c24dfc5a95
commit
7bd941a479
|
@ -1,4 +1,5 @@
|
||||||
import { createWidget } from "discourse/widgets/widget";
|
import { createWidget } from "discourse/widgets/widget";
|
||||||
|
import { iconNode } from "discourse-common/lib/icon-library";
|
||||||
|
|
||||||
export default createWidget("remove-vote", {
|
export default createWidget("remove-vote", {
|
||||||
tagName: "div.remove-vote",
|
tagName: "div.remove-vote",
|
||||||
|
@ -8,7 +9,7 @@ export default createWidget("remove-vote", {
|
||||||
},
|
},
|
||||||
|
|
||||||
html() {
|
html() {
|
||||||
return ["Remove vote"];
|
return [iconNode("times"), "Remove vote"];
|
||||||
},
|
},
|
||||||
|
|
||||||
click() {
|
click() {
|
||||||
|
|
|
@ -35,9 +35,7 @@
|
||||||
background-color: $primary-low;
|
background-color: $primary-low;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.vote-option.remove-vote:before {
|
.vote-option.remove-vote .d-icon {
|
||||||
content: $fa-var-close;
|
|
||||||
font-family: FontAwesome;
|
|
||||||
margin-right: 6px;
|
margin-right: 6px;
|
||||||
color: $danger;
|
color: $danger;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue