Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix all inherent ARIA role to HTML mappings
  • Loading branch information
jessebeach committed Nov 26, 2019
1 parent 3b53eae commit 17f4203
Show file tree
Hide file tree
Showing 25 changed files with 553 additions and 60 deletions.
14 changes: 13 additions & 1 deletion flow/aria.js
Expand Up @@ -308,12 +308,24 @@ type ARIARoleRelation = {
type ARIARoleRelationConcept = {
name: string,
attributes?: Array<ARIARoleRelationConceptAttribute>,
// Make these explicit. These values represent quirks of the mapping betweent
// ARIA and other semantic ontological systems.
constraints?: Array<
'direct descendant of document'
| 'direct descendant of ol, ul or menu'
| 'direct descendant of details element with the open attribute defined'
| 'descendant of table'
>,
};

type ARIARoleRelationConceptAttribute = {
name: string,
value?: string | number,
// Make these explicit. These values represent quirks of the mapping betweent
// ARIA and other semantic ontological systems.
constraints?: Array<'unset' | 'isset' | '>1'>,
constraints?: Array<
'undefined' // The attribute does not exist on the node: <a>
| 'set' // The attribute has a value: <a b="c">
| '>1'
>,
};

0 comments on commit 17f4203

Please sign in to comment.