AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / Desarrollar una aplicación o un sitio web / Controles, ventanas y páginas / Página
  • Overview
  • ARIA attributes
  • Principle
  • Implementation
  • Static attribute
  • Dynamic attribute
  • Test ARIA attributes
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
WEBDEV: Improving accessibility
Overview
To make your WEBDEV sites accessible to the visually impaired, all you need to do is enter specific attributes in the fields: ARIA attributes.

ARIA attributes

ARIA is a W3C specification that stands for "Accessible Rich Internet Applications". ARIA defines attributes that provide information for assistive software used by people with disabilities.
These attributes are mainly used by screen readers for visually impaired users.
In WEBDEV, you can specify this type of attributes for different controls.
Note: these attributes have no influence on a site's visual aspect or on the way browsers treat elements.

Principle

With WEBDEV, you can define ARIA attributes for each control, both programmatically and in edit mode.
These are some commonly used ARIA attributes:
  • aria-description: provides a description for a field that doesn't have a specific label.
  • aria-describedby: tells you which other field contains the description of a particular field.
  • aria-busy: indicates that an element is being updated and should not be taken into account by a screen reader, for example.
Note: a complete reference of ARIA attributes is available on the MDN website at the following address https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes.
Implementation

Static attribute

An ARIA attribute can be defined directly from the description window of each WEBDEV control, as follows:
  1. Open the control description window.
  2. On the "Advanced" tab, in "HTML attribute added to the control", enter:
    • the name of the attribute in the "Key" column (e.g. "aria-description").
    • its value in the "Value" column.
  3. Validate.

Dynamic attribute

You can also define ARIA attributes programmatically, for dynamic or multilingual content. This makes it possible to get the value of a given ARIA attribute from a database, for example.
To programmatically define an ARIA attribute, simply use the HTMLAttribute property on the control.
Example:
SAI_MotDePasse.AttributHTML["aria-description"] = "Saisie du mot de passe"
Note: property HTMLAttribute is accessible in both server and browser code.

Test ARIA attributes

To test ARIA attributes, you must use a specific screen reader, such as:
  • NVDA (open source),
  • JAWS (paid, popular screen reader).
Versión mínima requerida
  • Versión 28
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/09/2024

Señalar un error o enviar una sugerencia | Ayuda local