Skip to content

Commit

Permalink
fix(chips): remove chip bottom margin in sibling chips (#8198)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinayuangao authored and josephperrott committed Nov 10, 2017
1 parent 57c8f05 commit d79903a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib/chips/chips.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ $mat-chip-remove-margin-before: 6px;
$mat-chip-remove-margin-after: -4px;

$mat-chips-chip-margin: 8px;
$mat-chips-chip-bottom-margin: 3px;

$mat-chip-input-width: 150px;
$mat-chip-input-margin: 3px;
Expand All @@ -29,10 +28,10 @@ $mat-chip-input-margin: 3px;

// Apply a margin to adjacent sibling chips.
& + & {
margin: 0 0 $mat-chips-chip-bottom-margin $mat-chips-chip-margin;
margin: 0 0 0 $mat-chips-chip-margin;

[dir='rtl'] & {
margin: 0 $mat-chips-chip-margin $mat-chips-chip-bottom-margin 0;
margin: 0 $mat-chips-chip-margin 0 0;
}
}

Expand Down

0 comments on commit d79903a

Please # to comment.