Skip to content

fix(ui): brand mark — broken-image alt text leaked into pill (v0.9.10)#41

Open
bemoshiur wants to merge 1 commit into
mainfrom
fix/brand-mark-broken-img
Open

fix(ui): brand mark — broken-image alt text leaked into pill (v0.9.10)#41
bemoshiur wants to merge 1 commit into
mainfrom
fix/brand-mark-broken-img

Conversation

@bemoshiur

Copy link
Copy Markdown
Owner

Drops the broken <img src="/mocsla-logo.png"> first-load attempt in BrandMark. The PNG was never shipped, so every page rendered a broken-image icon plus the long alt text wrapping inside the 36px brand box. This is the real source of the original 'this section is broken' mobile report.

Renders the SVG directly. When a real PNG ships, restore the <img> path with proper handling.

Browser-verified at 1440px and 375px — broken column gone, brand pill clean.

🤖 Generated with Claude Code

Caught during browser self-verification of v0.9.9: every page rendered a
broken-image icon plus the alt text "MOCSLA — Mailing Operator & Courier
Services Licensing Authority" inside the 36px brand box on the top-left,
with each word wrapping onto its own line. This was the source of the
"this section is broken" mobile screenshot the user reported earlier;
the v0.9.8 hero-shrink fix addressed a different shrink issue but missed
this one.

Root cause: brand-mark.tsx tried to load /mocsla-logo.png first and
fell back to the SVG via onError. But /mocsla-logo.png was never
shipped — every page render started with a broken-image render, and
the alt text rendered inside the constrained 36px box.

Fix: render the SVG directly. When a real PNG ships into
apps/web/public/, restore the <img> path with a graceful fallback.
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