Skip to content

Commit

Permalink
Merge pull request #32 from A11yance/fix-select-mapping
Browse files Browse the repository at this point in the history
Fix mapping for the HTML select element
  • Loading branch information
jessebeach committed Nov 26, 2019
2 parents 900cfd9 + 8cbdf1d commit a5cf6b0
Show file tree
Hide file tree
Showing 19 changed files with 277 additions and 282 deletions.
5 changes: 4 additions & 1 deletion flow/aria.js
Expand Up @@ -312,5 +312,8 @@ type ARIARoleRelationConcept = {

type ARIARoleRelationConceptAttribute = {
name: string,
value?: string,
value?: string | number,
// Make these explicit. These values represent quirks of the mapping betweent
// ARIA and other semantic ontological systems.
constraints?: Array<'unset' | '>1'>,
};
6 changes: 6 additions & 0 deletions scripts/breakUpAriaJSON.js
Expand Up @@ -94,6 +94,9 @@ function triageValue(value, depth = 0) {
case 'string':
output = output.concat(`\'${value}\'`);
break;
case 'number':
output = output.concat(`${value}`);
break;
default:
output.push('null');
}
Expand Down Expand Up @@ -143,6 +146,9 @@ fs.readFile(path.join('scripts/roles.json'), {
// Deprecate requireContextRole prop. Replace with requiredContextRole.
// requireContextRole will be removed in a future version.
aria[name]['requireContextRole'] = aria[name]['requiredContextRole'];
// Deprecate baseConcepts prop.
// baseConcepts will be removed in a future version.
aria[name]['baseConcepts'] = [];

const file = [
'/**',
Expand Down

0 comments on commit a5cf6b0

Please sign in to comment.