Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Accessibility: Focus disabled SelectItem

    Hi all,

    Version: SGWT 2.5 and higher
    Browser: IE 9 and higher

    Editors in our application sometimes contain disabled SelectItems.
    When running in screen reader mode, it is important that every FormItem can be focused even if it is disabled. No focus means it is not accessible for the screen reader and information remains hidden for blind people.

    Is it possible to get the focus on a disabled SelectItem when running in screen reader mode by some setting?

    Some of our customers, which have a lot of experience with accessibility support and testing have asked for this behaviour.

    Best regards,
    Manuel

    #2
    For a "disabled" control that needs to be read for accessibility, use readOnlyDisplay settings of "readOnly" or "static", or in older versions of SmartGWT that don't have this setting, specify editorType:"StaticTextItem".

    Truly disable controls should not be focusable, and native HTML <input>s actually disallow this.

    Comment


      #3
      Thanks, a lot. This worked fine:

      Code:
      item.setCanEdit(false);
      item.setAriaState("disabled", true);
      item.setReadOnlyDisplay(ReadOnlyDisplayAppearance.READONLY);

      Comment

      Working...
      X