Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/material/chips/chip-set.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use '../core/style/vendor-prefixes';

// Ensures that the internal chip container spans the entire outer container width, if the
// outer container width is customized. This is used by some wrapper components in g3.
.mat-mdc-chip-set {
Expand Down Expand Up @@ -63,4 +65,19 @@ input.mat-mdc-chip-input {
margin-left: 0;
margin-right: 8px;
}

// The form field hides the placeholder by default,
// but we actually want to show it if there are chips.
.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) & {
@include vendor-prefixes.input-placeholder {
opacity: 1;
}
}

// The margin isn't necessary if the input is placed next to the chip set,
// because it'll be on the next line.
.mat-mdc-chip-set + & {
margin-left: 0;
margin-right: 0;
}
}
Loading