Skip to content

fix: hidden a11y text should not require asset#1162

Merged
wesleyboar merged 1 commit into
mainfrom
fix/hidden-a11y-text-should-not-require-asset
May 26, 2026
Merged

fix: hidden a11y text should not require asset#1162
wesleyboar merged 1 commit into
mainfrom
fix/hidden-a11y-text-should-not-require-asset

Conversation

@wesleyboar

@wesleyboar wesleyboar commented May 26, 2026

Copy link
Copy Markdown
Member

Overview

Hide a11y text via hidden not a class, because class requires stylesheet to have loaded.

When testing TACC/Core-Portal#1303, a11y text showed on screen before Bootstrap stylesheet had loaded.

Related

Changes

  • changed className to hidden attribute

Testing

  1. Have external link without accessible descritpion.
    (e.g. a CMS Nav link that opens site in new tab.)
  2. Deploy with (or on-the-fly change to use) new code.
  3. Verify link a11y description is still "Opens in a new window".
  4. Verify element with text "Opens in a new window":
    • is hidden
    • not class="sr-only"

UI

Before.mov
After.mov

@wesleyboar
wesleyboar marked this pull request as ready for review May 26, 2026 19:31
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@wesleyboar
wesleyboar merged commit 2cd4215 into main May 26, 2026
@wesleyboar
wesleyboar deleted the fix/hidden-a11y-text-should-not-require-asset branch May 26, 2026 19:31
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