Skip to content

fix(a11y): landmark posts, skip to content, and mark the view switch (ENG-155) - #113

Merged
odanieldcs merged 2 commits into
mainfrom
feature/eng-155
Oct 12, 2026
Merged

odanieldcs merged 2 commits into
mainfrom
feature/eng-155

Conversation

@odanieldcs

@odanieldcs odanieldcs commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Wrap each post in a single <main>, with the back-to-top button inside that landmark and outside .article-frame.
  • Add a keyboard skip link that focuses the page's only main, including 404 and route errors that use the site shell.
  • Mark the list/grid links with aria-current="page" and treat blog and article covers as decorative.

Test plan

  • On / and /blog/meu-blog-profissional, the first Tab shows "Pular para o conteúdo" and Enter moves focus to main with no outline.
  • At 390px, opening the menu makes the skip link inert; Tab stays in the header and the menu.
  • On /blog?view=grid, the active switch item still shows the pill, covers do not repeat the title, and axe reports no landmark-one-main, region, or aria-allowed-attr.
  • On a long post, scroll past 320px and confirm the back-to-top button stays inside main.

…(ENG-155)

Posts sat outside a main landmark, the header took several tabs before the content, and the list/grid links used aria-pressed.
@vercel

vercel Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
danieldcs-com Ready Ready Preview Oct 12, 2026 1:39am UTC

The hash had no element, so Enter did nothing before hydration and axe flagged skip-link on every page.
@odanieldcs
odanieldcs merged commit 2645cf6 into main Oct 12, 2026
8 checks passed
@odanieldcs
odanieldcs deleted the feature/eng-155 branch October 12, 2026 03:08

This branch was successfully deployed

1 active deployment
Preview — eb35e165 Deployed Oct 12, 2026 by vercel[bot]
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