Parcourir la source

Merge pull request #1372 from wprater/patch-2

add attributes available for Aria accessibility
Evan You il y a 10 ans
Parent
commit
0f249f27b7
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      src/directives/public/bind.js

+ 4 - 0
src/directives/public/bind.js

@@ -34,6 +34,10 @@ module.exports = {
         attr === 'class' ||
         // data attributes are allowed globally
         /^data-/.test(attr) ||
+        // aria attributes are allowed globally
+        /^aria-/.test(attr) ||
+        // role available
+        (attr === 'role') ||
         // for available
         (attr === 'for' && 'htmlFor' in this.el) ||
         // camelized prop available