Repository navigation
fix(logo): give LogoMark an accessible name; silence "ST" in Logo (#395) - #472
Merged
presidojay1 merged 2 commits intoNov 20, 2026
Merged
presidojay1 merged 2 commits into
presidojay1 merged 2 commits into
Conversation
Adds aria-hidden="true" to the "ST" span in LogoMarkImage — the span was visible text exposed to AT, causing screen-readers to announce "ST" on pages where LogoMark appeared alone (auth-layout, global-error). Adds role="img" aria-label="StellarTickets" to the LogoMark wrapper div so standalone use has a correct accessible name. LogoMark now accepts an aria-hidden prop: when true (decorative use inside Logo) it passes aria-hidden="true" to LogoMarkImage and omits the role/label; when absent (standalone use) it passes role="img" and the label instead.
Seven tests covering the three key scenarios: - LogoMark standalone: role="img", aria-label="StellarTickets", "ST" span is aria-hidden so the label is not read a second time. - LogoMark decorative (aria-hidden prop): wrapper is aria-hidden with no role or label. - Logo: the inner LogoMark is aria-hidden so AT reads only "StellarTickets" from the visible wordmark, not "ST StellarTickets". - LogoMarkImage: role/aria-label/aria-hidden pass-through; no aria attributes by default (satori path).
👷 Deploy request for stellartickets pending review.Visit the deploys page to approve it
|
|
@Dexperiencee Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The "ST" monogram span inside
LogoMarkwas exposed to assistive technology as ordinary visible text, causing two problems:Logo(navbar): the accessible output was "ST StellarTickets", so the home link was announced as "ST StellarTickets link".Changes
src/components/logo.tsxLogoMarkImage— the shared render that bothLogoMarkand the satori path use:role,aria-label,aria-hidden— passed through to the outer wrapper<div>.<span>now hasaria-hidden="true"unconditionally. When the wrapper carriesrole="img" aria-label="StellarTickets"the label is what AT reads; the span text would otherwise be announced twice. For the satori/LogoMarkImage-direct path the span is still visually rendered — thearia-hiddenattribute has no effect in a non-DOM satori render.LogoMark— the browser component (runsuseId):aria-hiddenprop.aria-hiddenis falsy (standalone use — auth-layout, global-error): rendersLogoMarkImagewithrole="img" aria-label="StellarTickets". AT announces "StellarTickets".aria-hiddenis truthy (decorative use insideLogo): rendersLogoMarkImagewitharia-hidden="true"and no role/label. AT skips the mark entirely.Logo:aria-hidden="true"to<LogoMark>. The visible wordmark text "StellarTickets" that follows is what AT reads — the mark is now decorative.Before / after for each context:
auth-layoutdesktop mark (56 px)auth-layoutmobile mark (32 px)global-errormark (40 px)Logo/ navbar home linkicon.tsx/opengraph-image.tsx/logo-512(LogoMarkImagedirect)src/components/logo.test.tsx(new)Closes #395
Closes #396
Closes #397
Closes #398
Seven tests covering:
LogoMarkstandalone →role="img",aria-label="StellarTickets"LogoMarkstandalone → "ST" span hasaria-hidden="true"LogoMark aria-hidden="true"→ wrapper isaria-hidden, no role/labelLogo→ inner mark isaria-hidden, "StellarTickets" text present, norole="img"inside5–7.
LogoMarkImageprop pass-through forrole/aria-label,aria-hidden, and default (no attrs)