Skip to content

opena11y/aria-to-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARIA Specification to Code Generator Version 1.1

This utility parses the ARIA specification and generates a Javascript Object representing the information for the role design patterns, and information on the valid properties, states and values defined in the specification. The object created is available as a JSON object or as a Javascript include file. It also generates two files that separate the properties and state information from the role design patterns issues.

Special Cases

In the ARIA spec there are special case for the following roles:

Role Context Objects created
separator tabindex When the separator role is focusable (e.g. tabindex value) and the separator is considered a widget. This is represented by including a 'separatorFocusable'. Focusable separators are sometimes commonly referred to as a splitter widget and used for adjusting the size of window.
row table, grid and treegrid There are different properties associated with the context of table, grid and treegrid roles for the row role. Creates a row, rowGrid and rowTreegrid objects to support the differences.

Creating the JSON and JS files

These steps assume you have both git and node.js installed on your computer.

Step 1: Checkout the Repository from Github

git clone git@github.com:opena11y/aria-to-code.git

Step 2: Setup the node environment

npm install

Step 3: Generating the JSON and JS files

npm run build

Files Created

The following four files are created in the releases directory.

File Name Format Role Info Prop. and State Info
gen-aria-role-design-patterns-{ver}.js JS Module Yes no
gen-aria-info-{ver}.json JSON Object Yes Yes
gen-aria-info-{ver}.js JS Module Yes Yes
gen-aria-property-data-types-{ver}.js. JS Module no Yes

ARIA 1.2 Specification Files

ARIA 1.3 Specification Files

Change History

Version 1.1 (2/2/2024)

  • Support for role role in the context of the table, grid and treegrid roles
  • Added support for ARIA versions
  • Support for ARIA 1.3 Spec

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published