Skip to content

Conversation

@gordonwoodhull
Copy link
Contributor

@gordonwoodhull gordonwoodhull commented Apr 16, 2025

Fixes #12564 and allows choosing the dark brand.

Note that we still don't really resolve dark logos; this only chooses properly chooses the light brand or dark brand, but still pulls the light logo from there.

In 1.8 I argue we should repurpose this parameter to actually find a dark logo if requested, when there is a more sensible search provided in #12341 dark logo.

This PR includes an unrelated code cleanup in brand.ts, pulling out an unintentionally nested loop for clarity.

we still don't resolve light and dark logos properly
but at least don't crash here

includes brand logo shortcode tests

fixes #12564
this is unrelated to #12564, fixing it anyway to reduce confusion
@gordonwoodhull gordonwoodhull merged commit 4a3279d into main Apr 16, 2025
49 checks passed
@gordonwoodhull gordonwoodhull deleted the bugfix/12564 branch April 16, 2025 23:37
gordonwoodhull added a commit that referenced this pull request Apr 16, 2025
@gordonwoodhull gordonwoodhull mentioned this pull request May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

brand logo shortcode is broken

2 participants