UX: Upgrade to fontawesome 6.6.0 (#28778)

This upgrade is designed to be fully backwards-compatible. Any icon names which have changed will be automatically remapped to the new name. For now, this will happen silently. In future, once core & official themes/plugins have been updated, we will start raising deprecation errors to help theme/plugin authors update their code.

Extracted from https://github.com/discourse/discourse/pull/28715

Announcement at https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349

Co-authored-by: awesomerobot <kris.aubuchon@discourse.org>
This commit is contained in:
David Taylor
2024-09-09 14:40:56 +01:00
committed by GitHub
parent 70e27b3476
commit 7d8974d02f
20 changed files with 7775 additions and 4995 deletions

View File

@ -93,7 +93,7 @@ RSpec.describe SvgSpriteController do
data = response.parsed_body
expect(data.length).to eq(200)
expect(data[0]["id"]).to eq("ad")
expect(data[0]["id"]).to eq("0")
end
it "should filter" do
@ -113,12 +113,12 @@ RSpec.describe SvgSpriteController do
get "/svg-sprite/picker-search"
data = response.parsed_body
beer_icon = response.parsed_body.find { |i| i["id"] == "beer" }
beer_icon = response.parsed_body.find { |i| i["id"] == "beer-mug-empty" }
expect(beer_icon).to be_present
get "/svg-sprite/picker-search", params: { only_available: "true" }
data = response.parsed_body
beer_icon = response.parsed_body.find { |i| i["id"] == "beer" }
beer_icon = response.parsed_body.find { |i| i["id"] == "beer-mug-empty" }
expect(beer_icon).to be nil
expect(data.length).to eq(200)
end