Skip to main content
Tutorial

How I Build Accessible Arabic Websites That Pass WCAG 2.1

5 min read

How to build Arabic websites that pass WCAG 2.1 standards with real tools and mistakes I've made along the way.

web accessibilityWCAG UAELaravel accessibilityArabic website developmentNext.js accessibility

I remember the first time I tried to explain WCAG compliance to a client in Dubai. They said, "You mean you have to make this site work for everyone?" Yeah. That’s the whole point.

A few months ago, I delivered a Laravel/Next.js project for a logistics company in Riyadh. Their old site failed every color contrast test because the Arabic script was too light against the background. Fixing that took six hours of debugging, but the client didn’t care until they saw an error rate drop from 38% to 0.


RTL Languages Aren’t an Afterthought

Right-to-left (RTL) support isn’t optional for Arabic websites. But just flipping the layout isn’t enough. I’ve seen developers use dir="rtl" on and call it a day. Big mistake.

When I rebuilt Tawasul Limo’s booking platform, I tested every component in both languages. Navigation menus had to reverse, form labels align to the right, and even datepickers had to handle Arabic calendar systems.

Tools I rely on:

  • postcss-rtlcss to automatically generate RTL styles from my LTR CSS
  • Tailwind’s rtl plugin for directional utilities
  • BrowserStack’s RTL testing environment

One frustrating bug: A client in Ajman wanted a slider with both LTR/RTL controls. The third-party React component kept positioning the thumbs incorrectly. I rewrote it using with dynamic dir attributes. Took two days instead of five minutes.


Use Native HTML Elements, Not Flashy JavaScript

This isn’t just an accessibility rule—it’s practical. I once inherited a Vue project where a developer replaced all

S

Sarah

Senior Full-Stack Developer & PMP-Certified Project Lead — Abu Dhabi, UAE

7+ years building web applications for UAE & GCC businesses. Specialising in Laravel, Next.js, and Arabic RTL development.

Work with Sarah