Skip to content

Commit fffb2b8

Browse files
committed
add attributes available for Aria accessibility
1 parent 7b8d20f commit fffb2b8

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)