Skip to content

Commit

Permalink
fix(search-bar): conflict between text and icon
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed Mar 7, 2018
1 parent 0303899 commit ccf19c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/lib/search/search-bar/search-bar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#input
matInput
autocomplete="off"
[ngClass]="{'hasSearchIcon': searchIcon}"
[disabled]="disabled"
[placeholder]="placeholder"
[ngModel]="term"
Expand Down
8 changes: 7 additions & 1 deletion src/lib/search/search-bar/search-bar.component.styl
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@ mat-form-field {
}

input {
width: calc(100% - $igo-icon-size);
padding-left: 10px;
padding-right: $igo-icon-size;
}

input.hasSearchIcon {
padding-right: "calc(%s * 2)" % $igo-icon-size;
}


.searchButtonDiv {
position: absolute;
right: 0;
Expand Down

0 comments on commit ccf19c1

Please sign in to comment.