Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(md-input-group): Improve a11y
Browse files Browse the repository at this point in the history
Closes #458
  • Loading branch information
marcysutton committed Oct 27, 2014
1 parent da55b67 commit a3be951
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/textField/textField.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ function mdTextFloatDirective() {
// transpose optional `type` and `class` settings
element.attr('type', attrs.type || "text");
element.attr('class', attrs.class );

// override the tabindex value set by ngAria
element.attr('tabindex', -1);
}
};
},
Expand Down Expand Up @@ -141,6 +144,7 @@ function mdInputDirective($mdUtil) {
var isDisabled = $mdUtil.isParentDisabled(element);

element.attr('tabindex', isDisabled ? -1 : 0 );
element.attr('aria-disabled', isDisabled ? 'true' : 'false');
element.attr('type', attr.type || element.parent().attr('type') || "text" );

// When the input value changes, check if it "has" a value, and
Expand Down

0 comments on commit a3be951

Please sign in to comment.