Quick Tips for Accessible Forms
Quick Tips for Accessible Forms

Quick Tips for Accessible Forms

Here are some things to keep in mind, while designing form elements:

  • Every field or group of fields should include a visual label (not only in placeholder)

For example in Gmail, labels in the Subject and Recipient fields are only seen when empty

  • Labels should be descriptive. label should tell how it must be filled, like ”Card Number XXXX-XXXX-XXXX-XXXX” and mark the input if it's required.
  • Labels for assistive technologies like screen readers. Required fields should not only marked as “required” in a visible label but also programmatically, by adding a “required” attribute, so a screen reader can announce the field as “required”

A screen reader will not announce the field as mandatory if aria-required or' required' is not added.
When 'aria-required' is added — "required" will be added to an announcement. Some screen readers may announce the asterisk (*) as required, but not every screen reader behaves this way.
"aria-required" and HTML's "required" are actually different, they both help identify mandatory content with a screen reader, but HTML's 'required' will check when submitted whether the required field is filled or not, "aria-required" on other hand, doesn't check the field.

  • Use live areas to notify changes in content. If live areas aren't used, a notification should be placed next to a control that causes a change, if a dialog is used it should be in focus and keyboard-accessible.
  • If there is an error in an input — it should be easy to find out which input must be corrected.
  • Errors should be meaningful of what is wrong. If the format is wrong, say that a phone number should start with “+” or include an extension number (but better to format it by code if other checks on the phone number are correct)


Additional sources

要查看或添加评论,请登录

Artem Alekseev的更多文章

  • UI Design & Seizures

    UI Design & Seizures

    As UI designs become more complex, we need to be mindful of the impact they can have on users with photosensitive…

  • Simple Metrics to Detect UX Problems with Microsoft Clarity

    Simple Metrics to Detect UX Problems with Microsoft Clarity

    When designing digital products, it’s crucial to understand how users interact with your interface. Microsoft Clarity…

  • Overview of Screen Readers Across Operating Systems

    Overview of Screen Readers Across Operating Systems

    Windows NVDA and JAWS are screen readers of choice for many on Windows. the usage of both is nearly the same.

  • Simulating Vision Deficiencies to Test UI

    Simulating Vision Deficiencies to Test UI

    Firefox dev-tools Screenshot showing vision simulation options in the "Accessibility" tab in Firefox Dev-tools You can…

  • UI Animations & Vestibular Disorders

    UI Animations & Vestibular Disorders

    Scroll hijacking and parallax scrolling not only can be annoying, it can also make people with Vestibular Disorders…

  • Use skip navigation links

    Use skip navigation links

    In 1998, Jim Thatcher (contributor to WCAG guidelines, and author of one of the first screen readers IBM Screen Reader…

  • Enhancing Contrast and Color Perception: WCAG, Ambient Light Sensor, and Media-queries

    Enhancing Contrast and Color Perception: WCAG, Ambient Light Sensor, and Media-queries

    1. Use WCAG AA+ Compliant Colors One of the simplest yet most effective ways to improve accessibility is using colors…

  • How People Use Braille on Smartphones

    How People Use Braille on Smartphones

    What is On-Screen Braille? On-screen Braille is a method that allows users to type using Braille directly on their…

  • ARIA Live Regions

    ARIA Live Regions

    Aria-live allows screen readers to mark sections as dynamic, so the screen reader can announce the change if content…

  • Testing Accessibility in Flutter

    Testing Accessibility in Flutter

    Accessibility is a crucial aspect of app development, ensuring that your application can be used by everyone, including…

社区洞察

其他会员也浏览了