Skip to content

Commit

Permalink
style(autocomplete): fix right padding and placeholder ellipsis
Browse files Browse the repository at this point in the history
does not work in chrome though
  • Loading branch information
fgravin committed Oct 6, 2023
1 parent df6fb76 commit e7ba117
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions libs/ui/inputs/src/lib/autocomplete/autocomplete.component.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
:host {
--input-height: 3.5em;
}
.clear-btn {
width: 3.5em;
width: var(--input-height);
right: var(--input-height);
height: 100%;
right: 3.5em;
}
.search-btn {
width: 3.5em;
width: var(--input-height);
height: 100%;
border-left-width: 0.1em;
}
Expand All @@ -15,9 +18,14 @@ mat-icon {
font-size: 1.5em;
}
input {
height: 3.5em;
height: var(--input-height);
padding: 1.05em;
padding-right: calc(2 * var(--input-height));
}
input:placeholder-shown {
text-overflow: ellipsis;
}

.mat-mdc-option.suggestion.mat-mdc-option-active {
background-color: var(--color-primary-lightest);
}

0 comments on commit e7ba117

Please sign in to comment.