FIX: email category badges shouldn't use category text color (#25655)

This commit is contained in:
Kris 2024-02-13 10:18:36 -05:00 committed by GitHub
parent 8eab06cb2f
commit faf0807b37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -91,6 +91,6 @@ module CategoryBadge
result << ERB::Util.html_escape(category.name)
result << "</span></span>"
wrap_in_link(result, data[:category_url], "", "color: ##{category.text_color};")
wrap_in_link(result, data[:category_url])
end
end

View File

@ -34,11 +34,10 @@ RSpec.describe CategoryBadge do
end
it "includes inline color style when inline_style is true" do
c = Fabricate(:category, color: "123456", text_color: "654321")
c = Fabricate(:category, color: "123456")
html = CategoryBadge.html_for(c, inline_style: true)
expect(html).to include("color: #654321;")
expect(html).to include("background-color: #123456;")
end
end