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

Commit f73e503

Browse files
committed
fix(select): make aria compliant, read value in screen readers
closes #3891, closes #4914, closes #4977, closes #6000, closes #3859
1 parent 86edea4 commit f73e503

File tree

6 files changed

+116
-115
lines changed

6 files changed

+116
-115
lines changed

docs/app/js/preload.js

Whitespace-only changes.

src/components/input/input.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function labelDirective() {
9898
restrict: 'E',
9999
require: '^?mdInputContainer',
100100
link: function(scope, element, attr, containerCtrl) {
101-
if (!containerCtrl || attr.mdNoFloat) return;
101+
if (!containerCtrl || attr.mdNoFloat || element.hasClass('md-container-ignore')) return;
102102

103103
containerCtrl.label = element;
104104
scope.$on('$destroy', function() {

src/components/input/input.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@ md-input-container {
8787
-ms-flex-preferred-size: auto; //IE fix
8888
}
8989

90-
label {
90+
label:not(.md-container-ignore) {
9191
position: absolute;
9292
bottom: 100%;
9393
left: 0;
9494
}
9595

9696

97-
label:not(.md-no-float),
97+
label:not(.md-no-float):not(.md-container-ignore),
9898
.md-placeholder {
9999
order: 1;
100100
pointer-events: none;

0 commit comments

Comments
 (0)