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

Commit

Permalink
fix(input): has-icon overwriting should have higher css priority as n…
Browse files Browse the repository at this point in the history
…ormal label without an icon.

At the moment the default label selector with (left: 0px) overwrites the label with icon selector.
This can be fixed by changing the selector priority.

Fixes #6005

Closes #6013
  • Loading branch information
devversion authored and Robert Messerle committed Dec 2, 2015
1 parent 358fd98 commit 6cac7da
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/components/input/input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ md-input-container {
display: block;
}

&.md-has-icon {
padding-left: $icon-offset;
> label {
left: $icon-offset;
}
}

// When we have ng-messages, remove the input error height from our bottom padding, since the
// ng-messages wrapper has a min-height of 1 error (so we don't adjust height as often; see below)
&.md-input-has-messages {
Expand Down Expand Up @@ -93,6 +86,13 @@ md-input-container {
left: 0;
}

// icon offset should have higher priority as normal label
&.md-has-icon {
padding-left: $icon-offset;
> label {
left: $icon-offset;
}
}

label:not(.md-no-float):not(.md-container-ignore),
.md-placeholder {
Expand Down

0 comments on commit 6cac7da

Please sign in to comment.