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

Commit

Permalink
fix(select): make aria compliant, read value in screen readers
Browse files Browse the repository at this point in the history
closes #3891, closes #4914, closes #4977, closes #6000, closes #3859
  • Loading branch information
rschmukler committed Dec 1, 2015
1 parent 86edea4 commit f73e503
Show file tree
Hide file tree
Showing 6 changed files with 116 additions and 115 deletions.
Empty file added docs/app/js/preload.js
Empty file.
2 changes: 1 addition & 1 deletion src/components/input/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function labelDirective() {
restrict: 'E',
require: '^?mdInputContainer',
link: function(scope, element, attr, containerCtrl) {
if (!containerCtrl || attr.mdNoFloat) return;
if (!containerCtrl || attr.mdNoFloat || element.hasClass('md-container-ignore')) return;

containerCtrl.label = element;
scope.$on('$destroy', function() {
Expand Down
4 changes: 2 additions & 2 deletions src/components/input/input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ md-input-container {
-ms-flex-preferred-size: auto; //IE fix
}

label {
label:not(.md-container-ignore) {
position: absolute;
bottom: 100%;
left: 0;
}


label:not(.md-no-float),
label:not(.md-no-float):not(.md-container-ignore),
.md-placeholder {
order: 1;
pointer-events: none;
Expand Down
Loading

0 comments on commit f73e503

Please sign in to comment.