DEV Community

DCT Technology Pvt. Ltd.
DCT Technology Pvt. Ltd.

Posted on

Common Accessibility Issues in Web Apps (And How to Fix Them)

When was the last time you tested your web app with a keyboard only? Or ran a screen reader to check if your UI made any sense without visuals?

Most developers donโ€™t realize theyโ€™re unintentionally building digital barriers that shut out millions of users โ€” and that means you're also shutting down your growth, conversions, and brand reputation.

Letโ€™s fix that. ๐Ÿ‘‡

Image description

๐Ÿ” 1. Missing Alternative Text for Images

Images without proper alt text are useless for screen readers.

This is one of the most common accessibility violations and also the easiest to fix.

โœ… Fix it:

<!-- Bad -->
<img src="product.jpg">

<!-- Good -->
<img src="product.jpg" alt="Black leather office chair with armrests">
Enter fullscreen mode Exit fullscreen mode

๐Ÿ’ก How to write good alt text (W3C)


โŒจ๏ธ 2. Keyboard Navigation Isn't Working Properly

Can your users tab through your site smoothly? If not, you're locking out users who rely on keyboards or assistive technologies.

โœ… Fix it:

  • Ensure all interactive elements (like buttons, links, modals) are focusable.

  • Use :focus-visible to style elements clearly during tab navigation.

  • Avoid using elements that hijack keyboard events.

button:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}
Enter fullscreen mode Exit fullscreen mode

๐Ÿš€ Bonus tool: WebAIM's Keyboard Accessibility Checklist


๐Ÿงฉ 3. Low Color Contrast

If users canโ€™t read your text, it doesnโ€™t matter how โ€œon-brandโ€ your colors are.

โœ… Fix it:

  • Aim for a minimum contrast ratio of 4.5:1 between text and background.

  • Use tools like Contrast Checker to test your colors.

/* Avoid light grey text on white backgrounds */
color: #6b7280; /* Better */
Enter fullscreen mode Exit fullscreen mode

๐Ÿ“ข 4. No ARIA or Semantic Elements

If your site relies only on <div> and <span>, screen readers might struggle to understand the layout.

โœ… Fix it:

  • Use semantic HTML5 tags like <nav>, <main>, <header>, <footer>, etc.

  • Where needed, add ARIA roles like role="dialog" or aria-live="polite".

๐Ÿง  Learn more: MDN Web Docs - ARIA roles


๐Ÿ“ฑ 5. Not Responsive or Zoom-Friendly

Accessibility is not just about screen readers โ€” it's also about layout adaptability.

โœ… Fix it:

  • Use relative units like em, rem, % instead of px.

  • Ensure text and layout donโ€™t break when zoomed to 200%.

html {
  font-size: 100%; /* respect user settings */
}
Enter fullscreen mode Exit fullscreen mode

๐Ÿงช Responsive Design Principles - Google Developers


๐Ÿ”Š 6. No Focus Traps in Modals

Ever opened a modal and couldnโ€™t escape it with the keyboard? Thatโ€™s a focus trap failure.

โœ… Fix it:
Use libraries like Focus Trap or manage focus manually when opening/closing modals.

modal.addEventListener('keydown', (e) => {
  if (e.key === 'Tab') {
    // handle focus wrap logic
  }
});
Enter fullscreen mode Exit fullscreen mode

โœ… 7. No Accessible Form Labels

Placeholder text โ‰  label. Screen readers skip placeholders, and thatโ€™s a problem.

โœ… Fix it:


html
<!-- Bad -->
<input type="email" placeholder="Your email">

<!-- Good -->
<label for="email">Email Address</label>
<input type="email" id="email" name="email">


## ๐Ÿ“ฃ Final Thought: Accessibility is Not Optional

Web accessibility isnโ€™t just a โ€œnice to haveโ€ โ€” itโ€™s a **requirement** that improves usability for *everyone*. 


You donโ€™t have to be an expert overnight, but you do have to start somewhere.

Every improvement makes a difference. Every inclusive line of code counts.

---

๐Ÿ‘€ Found this helpful? Want more posts like this?

๐Ÿ‘‰ Follow **[DCT Technology](WWW.DCTINFOTECH.COM)** for real-world insights on **Web Development**, **UI/UX**, **SEO**, and **Tech Consulting** that actually *move the needle*.

Letโ€™s build better, together. ๐Ÿ’™

---

#accessibility #webdevelopment #frontend #uxdesign #seo #javascript #reactjs #a11y #html #css #techcommunity #devto #inclusiveweb #dcttechnology
Enter fullscreen mode Exit fullscreen mode

Top comments (0)