Skip to content

A11y: RTL direction attribute not set for Arabic/Hebrew pages #18

@marcuskbra

Description

@marcuskbra

Description

The dir="rtl" attribute is not being set on the <html> or <body> elements for RTL languages (Arabic, Hebrew).

Current Behavior

When navigating to /ar (Arabic) or /he (Hebrew):

  • html[dir] = null
  • body[dir] = null

Expected Behavior

For RTL languages, the HTML should include:

<html dir="rtl" lang="ar">

Impact

  • Screen readers may not announce content in the correct direction
  • CSS logical properties may not work correctly
  • Text alignment and layout may be incorrect for RTL users

WCAG Criterion

Suggested Fix

Update the application to dynamically set dir="rtl" based on the current language locale.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions