Skip to content

Commit 0f249f2

Browse files
committed
Merge pull request #1372 from wprater/patch-2
add attributes available for Aria accessibility
2 parents 7b8d20f + fffb2b8 commit 0f249f2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/directives/public/bind.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ module.exports = {
3434
attr === 'class' ||
3535
// data attributes are allowed globally
3636
/^data-/.test(attr) ||
37+
// aria attributes are allowed globally
38+
/^aria-/.test(attr) ||
39+
// role available
40+
(attr === 'role') ||
3741
// for available
3842
(attr === 'for' && 'htmlFor' in this.el) ||
3943
// camelized prop available

0 commit comments

Comments
 (0)