Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

FIX: Render legacy color declaration #34

Merged
merged 1 commit into from
Jun 17, 2024
Merged

FIX: Render legacy color declaration #34

merged 1 commit into from
Jun 17, 2024

Conversation

nolosb
Copy link
Contributor

@nolosb nolosb commented Jun 16, 2024

Using categoryColor in the settings list is obsolete as the category color will be applied by default.

This is a fix for the sidebar icons, for existing instances still using the value. I'm not sure what's the code style to handle such regressions. I added a comment as it seemed most clear to me.

Using categoryColor as value actually also fails on the new default badges, but silently as it's applied to an inline style:

Screenshot from 2024-06-15 22-15-38

Copy link
Contributor

@pmusaraj pmusaraj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the followup @nolosb!

@pmusaraj pmusaraj merged commit 702c73d into discourse:main Jun 17, 2024
4 checks passed
@nolosb nolosb deleted the category-color branch June 18, 2024 10:15
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants