Skip to content

Commit

Permalink
docs(core) Prevent from overriding compact styles (#3736)
Browse files Browse the repository at this point in the history
  • Loading branch information
salarenko committed Nov 4, 2020
1 parent c92a5fa commit f32cd59
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
1 change: 0 additions & 1 deletion libs/core/src/lib/multi-input/multi-input.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
<li
*ngFor="let value of displayedValues"
fd-list-item
class="fd-multi-input-list-item-custom"
[selected]="selected.indexOf(value) !== -1"
>
<fd-checkbox
Expand Down
15 changes: 9 additions & 6 deletions libs/core/src/lib/multi-input/multi-input.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,20 @@
.fd-multi-input-menu-overflow {
max-width: 100%;
overflow: auto;

// TODO: Remove after adjusting in styles
.fd-multi-input-list-item-custom {
height: 2.5rem;
&:not(.fd-list--compact) {
.fd-list__item {
height: 2.5rem;

.fd-checkbox__label {
padding-top: 0.5625rem;
padding-bottom: 0.5625rem;
.fd-checkbox__label {
padding-top: 0.5625rem;
padding-bottom: 0.5625rem;
}
}
}
}

.fd-input {
&.fd-multi-input-tokenizer-input {
margin-top: 0;
Expand Down

0 comments on commit f32cd59

Please sign in to comment.