Skip to content

Commit

Permalink
fix(aria-allowed-attrs): allow aria-description and aria-braille* att…
Browse files Browse the repository at this point in the history
…rs (#3956)

* fix(aria-allowed-attrs): allow aria-description and aria-braille* attrs

* fix test
  • Loading branch information
straker committed Mar 24, 2023
1 parent e3a5c21 commit 2842395
Show file tree
Hide file tree
Showing 3 changed files with 217 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/standards/aria-attrs.js
Expand Up @@ -12,6 +12,14 @@ const ariaAttrs = {
type: 'nmtoken',
values: ['inline', 'list', 'both', 'none']
},
'aria-braillelabel': {
type: 'string',
global: true
},
'aria-brailleroledescription': {
type: 'string',
global: true
},
'aria-busy': {
type: 'boolean',
global: true
Expand Down Expand Up @@ -48,6 +56,11 @@ const ariaAttrs = {
allowEmpty: true,
global: true
},
'aria-description': {
type: 'string',
allowEmpty: true,
global: true
},
'aria-details': {
type: 'idref',
allowEmpty: true,
Expand Down
3 changes: 3 additions & 0 deletions test/commons/standards/get-global-aria-attrs.js
Expand Up @@ -14,10 +14,13 @@ describe('standards.getGlobalAriaAttrs', function () {
var globalAttrs = getGlobalAriaAttrs();
assert.deepEqual(globalAttrs, [
'aria-atomic',
'aria-braillelabel',
'aria-brailleroledescription',
'aria-busy',
'aria-controls',
'aria-current',
'aria-describedby',
'aria-description',
'aria-details',
'aria-disabled',
'aria-dropeffect',
Expand Down

0 comments on commit 2842395

Please sign in to comment.