mirror of
https://github.com/discourse/discourse.git
synced 2025-05-26 08:22:04 +08:00
FEATURE: Update Font Awesome to v5.4.1 and SVGs (#6557)
* First take on subsetting svg icons * FontAwesome 5 svg subset WIP * Include icons from plugins/badges into svg sprite subset * add svg icon support to themes * Add spec for SvgSprite * Misc. SVG icon fixes * Use FA5 svgs in local-dates plugin * CSS adjustments, fix SVG icons in group flair * Use SVG icons in poll plugin * Add SVG icons to /wizard
This commit is contained in:
@ -11,7 +11,7 @@ componentTest("default theme", {
|
||||
|
||||
test(assert) {
|
||||
assert.expect(1);
|
||||
assert.equal(this.$(".fa-check").length, 1, "shows default theme icon");
|
||||
assert.equal(this.$(".d-icon-check").length, 1, "shows default theme icon");
|
||||
}
|
||||
});
|
||||
|
||||
@ -26,11 +26,15 @@ componentTest("pending updates", {
|
||||
|
||||
test(assert) {
|
||||
assert.expect(1);
|
||||
assert.equal(this.$(".fa-refresh").length, 1, "shows pending update icon");
|
||||
assert.equal(
|
||||
this.$(".d-icon-refresh").length,
|
||||
1,
|
||||
"shows pending update icon"
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
componentTest("borken theme", {
|
||||
componentTest("broken theme", {
|
||||
template: "{{themes-list-item theme=theme}}",
|
||||
beforeEach() {
|
||||
this.set(
|
||||
@ -45,7 +49,7 @@ componentTest("borken theme", {
|
||||
test(assert) {
|
||||
assert.expect(1);
|
||||
assert.equal(
|
||||
this.$(".fa-exclamation-circle").length,
|
||||
this.$(".d-icon-exclamation-circle").length,
|
||||
1,
|
||||
"shows broken theme icon"
|
||||
);
|
||||
|
Reference in New Issue
Block a user