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

Commit

Permalink
feat(input): adds no-float class to disable floating label animations
Browse files Browse the repository at this point in the history
Closes #201
  • Loading branch information
Robert Messerle committed Feb 4, 2015
1 parent f1a4bcc commit 5682f52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/input/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function labelDirective() {
restrict: 'E',
require: '^?mdInputContainer',
link: function(scope, element, attr, containerCtrl) {
if (!containerCtrl) return;
if (!containerCtrl || attr.noFloat) 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 @@ -46,7 +46,7 @@ md-input-container {
overflow: hidden;
}

label,
label:not(.no-float),
.md-placeholder {
order: 1;
pointer-events: none;
Expand Down Expand Up @@ -139,7 +139,7 @@ md-input-container {

&.md-input-focused,
&.md-input-has-value {
label {
label:not(.no-float) {
transform: translate3d(0,$input-label-float-offset,0) scale($input-label-float-scale);
}
}
Expand Down

0 comments on commit 5682f52

Please sign in to comment.