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.
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]= nullbody[dir]= nullExpected Behavior
For RTL languages, the HTML should include:
Impact
WCAG Criterion
Suggested Fix
Update the application to dynamically set
dir="rtl"based on the current language locale.