Skip to content

♿️(frontend) structure correctly 5xx error alerts #2128

Open
Ovgodd wants to merge 1 commit intomainfrom
fix/error-page-translation
Open

♿️(frontend) structure correctly 5xx error alerts #2128
Ovgodd wants to merge 1 commit intomainfrom
fix/error-page-translation

Conversation

@Ovgodd
Copy link
Collaborator

@Ovgodd Ovgodd commented Mar 25, 2026

Purpose

Fix the server error alert component (TextErrors) so that HTTP 5xx errors are displayed with a structured heading (<h2>) and a paragraph (<p>) instead of raw <span> elements. This makes the error accessible to screen readers (heading navigation) and prepares the keys for future i18n translation.

Proposal

  • Add a status prop to TextErrors / TextOnlyErrors
  • Create useHttpErrorMessages hook with t() literals for 500/502/503
  • Render <h1> + <p> with normalized font size when a known status is passed

@Ovgodd Ovgodd requested a review from AntoLC March 25, 2026 10:58
@Ovgodd Ovgodd self-assigned this Mar 25, 2026
@Ovgodd Ovgodd changed the title ♿️(frontend) structure 5xx error alerts with heading and stable copy … ♿️(frontend) structure correctly 5xx error alerts Mar 25, 2026
@Ovgodd Ovgodd force-pushed the fix/error-page-translation branch from 1cda75b to ccf023c Compare March 25, 2026 10:59
Use h1/p for 500/502/503; pass status from doc and version views.
@Ovgodd Ovgodd force-pushed the fix/error-page-translation branch from ccf023c to d8d655c Compare March 25, 2026 10:59
@Ovgodd Ovgodd linked an issue Mar 25, 2026 that may be closed by this pull request
@Ovgodd Ovgodd moved this from Backlog to In progress in LaSuite Docs A11y Mar 25, 2026
@github-actions
Copy link

Size Change: +317 B (+0.01%)

Total Size: 4.24 MB

Filename Size Change
apps/impress/out/_next/static/06dd3c87/_buildManifest.js 622 B +622 B (new file) 🆕
apps/impress/out/_next/static/c35f6b3c/_buildManifest.js 0 B -622 B (removed) 🏆

compressed-size-action

@Ovgodd Ovgodd marked this pull request as ready for review March 25, 2026 11:50
@Ovgodd Ovgodd moved this from In progress to In review in LaSuite Docs A11y Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

Error page: unstructured content and displayed in English

1 participant