Skip to content

ux(brands): bolden the brand breadcrumb avatar fallback - #174

Merged
gkhngyk merged 1 commit into
mainfrom
ux/brand-breadcrumb-avatar
Jun 4, 2026
Merged

gkhngyk merged 1 commit into
mainfrom
ux/brand-breadcrumb-avatar

Conversation

@gkhngyk

@gkhngyk gkhngyk commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Summary

The brand detail breadcrumb (/dashboard/brands/<id>/...) renders its avatar with bg-primary/10 text-primary — 10% primary background + primary text — so when a brand has no logoUrl, the initials read as a faint wash.

The sidebar's BrandSwitcher avatar already uses the solid bg-primary text-primary-foreground pairing for the same fallback. Bringing the breadcrumb avatar in line drops the visual inconsistency and surfaces the initials at full contrast.

One-line class swap, no asset or behavior change.

Test plan

  • Visit /dashboard/brands/<id>/... for a brand without a logoUrl — initials read in solid primary, matching the sidebar BrandSwitcher.
  • Brands that do have a logo still render the <AvatarImage> exactly as before.

The brand detail breadcrumb avatar used `bg-primary/10 text-primary`,
which renders the initials at low contrast when the brand has no logo.
Swap to `bg-primary text-primary-foreground` so the fallback matches the
sidebar BrandSwitcher's avatar and reads at full contrast.
@gkhngyk
gkhngyk merged commit f3f1096 into main Jun 4, 2026
3 checks passed
@gkhngyk
gkhngyk deleted the ux/brand-breadcrumb-avatar branch June 4, 2026 15:12

This branch was successfully deployed

1 active deployment
Preview — 650ac178 Deployed Jun 4, 2026 by vercel[bot]
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.

1 participant