Accessible Mobile UI: Implementing WCAG for Native Apps
Accessibility isn't a checkbox — it's a design principle. A practical guide to building inclusive mobile apps that work for everyone.
Abhinav Birajdar
Creator
Why Accessibility Matters
Accessibility isn't just a legal requirement or a feature for a niche audience. It's a quality signal. Apps built with accessibility in mind are easier to use for everyone — including users in bright sunlight, users with temporary injuries, elderly users, and users with permanent disabilities.
In 2025, 1 in 6 people globally live with some form of disability. Building accessible apps isn't optional — it's good engineering.
The Four Pillars: POUR
The Web Content Accessibility Guidelines (WCAG 2.1) are built on four principles, known as POUR:
- Perceivable — Information must be presentable in ways all users can perceive
- Operable — UI components must be operable by all users
- Understandable — Content and operation must be understandable
- Robust — Content must be interpreted by a wide variety of assistive technologies
1. Color Contrast
Color contrast is the most commonly violated accessibility requirement — and one of the easiest to fix.
| Text Type | Minimum Contrast | Enhanced (AAA) |
|---|---|---|
| Normal text (< 18pt) | 4.5:1 | 7:1 |
| Large text (≥ 18pt bold) | 3:1 | 4.5:1 |
| UI components & graphics | 3:1 | — |
Tools to check contrast:
- Colour Contrast Analyser
- WebAIM Contrast Checker
- Figma plugins: Contrast, A11y Annotation Kit
2. Touch Target Sizes
Small touch targets frustrate everyone. WCAG 2.1 AA recommends a minimum of 44×44 CSS pixels. Google Material Design specifies 48×48dp.
dart1// Flutter: ensure minimum touch target 2SizedBox( 3 width: 48, 4 height: 48, 5 child: IconButton( 6 icon: const Icon(Icons.close), 7 onPressed: () {}, 8 tooltip: 'Close dialog', 9 ), 10)
jsx1// React Native: use hitSlop to extend touch area without changing visual size 2<TouchableOpacity 3 hitSlop={{ top: 12, bottom: 12, left: 12, right: 12 }} 4 onPress={handleClose} 5 accessibilityLabel="Close dialog" 6 accessibilityRole="button" 7> 8 <CloseIcon /> 9</TouchableOpacity>
3. Screen Readers
Screen readers (TalkBack on Android, VoiceOver on iOS) read content aloud and allow touch-free navigation. Your app must make sense when listened to, not just seen.
React Native — Key Props
jsx1<View 2 accessible={true} 3 accessibilityLabel="Profile photo of Abhinav Birajdar" 4 accessibilityRole="image" 5> 6 <Image source={{ uri: profileUrl }} /> 7</View>
Flutter — Key Widgets
dart1Semantics( 2 label: 'Profile photo of Abhinav Birajdar', 3 image: true, 4 child: Image.network(profileUrl), 5)
Common Screen Reader Roles
button— tappable actionslink— navigates to another screen or URLimage— visual contentheader— section headingstext— body contentsearch— search input fieldscheckbox/radio/switch— selection controls
4. Dynamic Font Sizes
Users set font sizes in system settings for a reason. Your app must respect this.
dart1// Flutter: always use textScaler-aware sizing 2Text( 3 'Hello World', 4 style: Theme.of(context).textTheme.bodyMedium, // scales with system settings 5) 6 7// Never do this: 8// Text('Hello World', style: TextStyle(fontSize: 16)) // ignores user preference
jsx1// React Native: allow font scaling (default behavior — don't disable it) 2<Text allowFontScaling={true} style={styles.body}>Hello World</Text>
5. Focus Order
Keyboard and switch-access users navigate your app by moving focus between elements. The order must be logical — typically left-to-right, top-to-bottom.
Common Focus Order Mistakes:
- Modal opens but focus stays behind the modal overlay
- Form jumps to submit button before all fields
- Drawer opens but focus stays on the trigger button
- Focus disappears when an element is removed from the tree
6. Color Is Not the Only Signal
Never use color as the sole means of conveying information.
❌ "Fields highlighted in red are required" ✅ "Required fields are marked with a red asterisk (*) and labeled as 'Required'"
❌ A success/error state communicated only by green/red color ✅ A success/error state with a color, icon, and text label
7. Motion & Animation
Some users have vestibular disorders that make animations physically uncomfortable or dangerous. Always respect the system's reduced-motion preference.
dart1// Flutter: check for reduced motion 2final bool reduceMotion = MediaQuery.of(context).disableAnimations; 3 4AnimationController controller = AnimationController( 5 duration: reduceMotion ? Duration.zero : const Duration(milliseconds: 300), 6 vsync: this, 7);
jsx1// React Native 2import { AccessibilityInfo } from 'react-native'; 3 4const [reduceMotion, setReduceMotion] = useState(false); 5 6useEffect(() => { 7 AccessibilityInfo.isReduceMotionEnabled().then(setReduceMotion); 8}, []);
Quick Accessibility Audit Checklist
Run through this before every release:
- All images have descriptive
accessibilityLabeloralttext - Interactive elements have clear accessibility roles
- Color contrast passes WCAG AA (4.5:1 for body text)
- Touch targets are at least 44×44dp
- Font sizes scale correctly with system settings
- Screen reader announces logical focus order
- No information conveyed by color alone
- Reduced motion preference is respected
- Error messages include both icon and descriptive text
- Loading states are announced to screen readers
Conclusion
Building accessible mobile apps isn't harder — it just requires intentional decisions made early. When you design with accessibility in mind from the start, you end up with cleaner code, better UX for everyone, and an app that stands apart from the majority that ignore these standards.
Start with the basics: contrast, labels, touch targets, and font scaling. Then build from there.