fix(website): resolve typespec.io accessibility issues#11292
Open
timotheeguerin wants to merge 2 commits into
Open
fix(website): resolve typespec.io accessibility issues#11292timotheeguerin wants to merge 2 commits into
timotheeguerin wants to merge 2 commits into
Conversation
Fixes six A11y_TypeSpec website bugs: - #10789 (WCAG 2.4.1): add a "Skip to main content" link and a focusable <main> landmark to the non-docs page layout. - #10791 (WCAG 2.1.1): make the OpenAPI page sample carousel keyboard operable by converting the tabs to buttons with the full ARIA tabs pattern. - #10793 (WCAG 1.3.1): give the docs sidebar a distinct landmark name ("Documentation") so it no longer collides with the header nav. - #10794 (WCAG 1.4.12): keep the header on a single row under increased text spacing; hide the version banner in the narrow desktop range and allow the nav to wrap as a fallback instead of overlapping. - #10795 / #10796 (WCAG 1.4.10 / 1.4.4): stop the site header menu button from overlapping Starlight's sidebar menu button (and the search button) on docs pages by hiding the redundant control and reserving space; the site links remain reachable from the Starlight mobile menu.
Contributor
|
No changes needing a change description found. |
|
You can try these changes here
|
timotheeguerin
marked this pull request as ready for review
July 17, 2026 14:09
timotheeguerin
requested review from
bterlson,
catalinaperalta,
iscai-msft,
markcowl and
witemple-msft
as code owners
July 17, 2026 14:09
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.
Fixes six open A11y_TypeSpec website accessibility bugs (all Sev2,
meta:website) filed against typespec.io.<main id tabindex="-1">landmark to the non-docs page layout.role="tab"anchors (nohref) to<button>s with the full ARIA tabs pattern.--sl-nav-heightto the real header height so content offsets track the header.Verification
Each fix was verified in a locally running dev server with Playwright/Chromium:
<main>on activation.aria-selected.MainandDocumentationnav landmarks.astro check(0 errors / 0 warnings / 0 hints),oxlint, andprettierall pass.