Skip to content

Commit

Permalink
feat(search): make placeholder stay inplace when focused. (closes #226)…
Browse files Browse the repository at this point in the history
… (#391)

leverage [floatPlaceholder] to make the placeholde stay in place when focused
  • Loading branch information
emoralesb05 authored Mar 2, 2017
1 parent 1561ff8 commit 58094fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/platform/core/search/search-box/search-box.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,5 @@
height: 64px;
td-search-input {
margin-left: 12px;
/deep/ {
.mat-input-placeholder.mat-focused {
visibility: hidden;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="td-search-input" layout="row" layout-align="end center">
<md-input-container [class.mat-hide-underline]="!showUnderline" flex>
<md-input-container [class.mat-hide-underline]="!showUnderline" floatPlaceholder="never" flex>
<input mdInput
#searchElement
type="search"
Expand Down

0 comments on commit 58094fa

Please sign in to comment.