Skip to content

Commit

Permalink
use id and idlist as attribute types
Browse files Browse the repository at this point in the history
  • Loading branch information
xi committed Feb 26, 2018
1 parent 550ba5d commit 6978637
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions flow/aria.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ type ARIAPropertyMap = {

type ARIAPropertyDefinition = {
type: 'string'
| 'id',
| 'idlist',
| 'integer'
| 'number'
| 'boolean'
Expand Down
12 changes: 6 additions & 6 deletions src/ariaPropsMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type MapOfARIAPropertyDefinitions = Map<ARIAProperty, ARIAPropertyDefinition>;

const ariaPropsMap: MapOfARIAPropertyDefinitions = new Map([
['aria-activedescendant', {
'type': 'string'
'type': 'id'
}],
['aria-atomic', {
'type': 'boolean'
Expand Down Expand Up @@ -36,7 +36,7 @@ const ariaPropsMap: MapOfARIAPropertyDefinitions = new Map([
type: 'integer',
}],
['aria-controls', {
'type': 'string'
'type': 'idlist'
}],
['aria-current', {
type: 'token',
Expand All @@ -51,7 +51,7 @@ const ariaPropsMap: MapOfARIAPropertyDefinitions = new Map([
],
}],
['aria-describedby', {
'type': 'string'
'type': 'idlist'
}],
['aria-disabled', {
'type': 'boolean'
Expand All @@ -72,7 +72,7 @@ const ariaPropsMap: MapOfARIAPropertyDefinitions = new Map([
'allowundefined': true
}],
['aria-flowto', {
'type': 'string'
'type': 'idlist'
}],
['aria-grabbed', {
'type': 'boolean',
Expand Down Expand Up @@ -109,7 +109,7 @@ const ariaPropsMap: MapOfARIAPropertyDefinitions = new Map([
'type': 'string'
}],
['aria-labelledby', {
'type': 'string'
'type': 'idlist'
}],
['aria-level', {
'type': 'integer'
Expand Down Expand Up @@ -139,7 +139,7 @@ const ariaPropsMap: MapOfARIAPropertyDefinitions = new Map([
]
}],
['aria-owns', {
'type': 'string'
'type': 'idlist'
}],
['aria-placeholder', {
type: 'string',
Expand Down

0 comments on commit 6978637

Please sign in to comment.