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

fix(select): make aria compliant, read value in screen readers #6000

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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