Skip to content

Docs: add <main> landmark to homepage masthead - #43102

Closed
TanmayNileshShinde wants to merge 1 commit into
twbs:mainfrom
TanmayNileshShinde:fix/homepage-main-landmark
Closed

TanmayNileshShinde wants to merge 1 commit into
twbs:mainfrom
TanmayNileshShinde:fix/homepage-main-landmark

Conversation

@TanmayNileshShinde

Copy link
Copy Markdown

Description

Updates the homepage masthead wrapper in site/src/components/home/MastHead.astro from a generic

to a landmark with id="content", and passes slot="main" in site/src/pages/index.astro.

Motivation & Context

Fixes #43045.

As noted in #43045 and flagged by accessibility checks (Lighthouse / axe-core landmark-one-main), the v6 homepage lacked a primary

landmark.

Using

provides the required landmark for assistive technologies and correctly grounds the skip link (href="#content") without altering visual styles.

Type of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would change existing functionality)

Checklist

  • I have read the contributing guidelines
  • My code follows the code style of the project
  • My change introduces changes to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

Related issues

Closes #43045

@julien-deramond julien-deramond added v6 v6, the main branch accessibility Keyboard, screen readers, contrast, ARIA docs Documentation site and its content html Component markup: elements, attributes, structure labels Oct 16, 2026
@github-project-automation github-project-automation Bot moved this to Inbox in v6.0.0 Oct 16, 2026
@julien-deramond julien-deramond removed this from v6.0.0 Oct 16, 2026
@julien-deramond

Copy link
Copy Markdown
Member

Thanks for your PR @TanmayNileshShinde but I used a slightly different approach via #43105

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accessibility Keyboard, screen readers, contrast, ARIA docs Documentation site and its content html Component markup: elements, attributes, structure v6 v6, the main branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v6 homepage: accessibility improvement

2 participants