From 4a68e87206edc9128750b70452bde4bbbf22c31a Mon Sep 17 00:00:00 2001 From: Yuan Gao Date: Mon, 5 Feb 2018 12:19:04 -0800 Subject: [PATCH] fix(chips): remove margin for chip list --- src/lib/chips/chips.scss | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/lib/chips/chips.scss b/src/lib/chips/chips.scss index 812a60c10ebe..2c5b211d4ead 100644 --- a/src/lib/chips/chips.scss +++ b/src/lib/chips/chips.scss @@ -33,10 +33,6 @@ $mat-chip-remove-size: 18px; align-items: center; cursor: default; - .mat-chip-list-wrapper & { - margin: $mat-chips-chip-margin; - } - .mat-chip-remove.mat-icon { width: $mat-chip-remove-size; height: $mat-chip-remove-size; @@ -125,6 +121,12 @@ $mat-chip-remove-size: 18px; flex-direction: row; flex-wrap: wrap; align-items: center; + margin: -$mat-chips-chip-margin; + + input.mat-input-element, + .mat-standard-chip { + margin: $mat-chips-chip-margin; + } } .mat-chip-list-stacked .mat-chip-list-wrapper {