fix(chips): cursor on remove button and box-shadow transition (#6019)

* Adds a `pointer-cursor` to the chip remove button to indicate that it's clickable.
* Adds a transition to the focused chip `box-shadow` to make it less harsh.
* Breaks up a long line that was exceeding our character limit.
This commit is contained in:
Kristiyan Kostadinov
2017-07-28 17:55:44 +03:00
committed by Andrew Seguin
parent 2388d91642
commit 82535039a2
+3 -1
View File
@@ -16,8 +16,9 @@ $mat-chips-chip-margin: 8px;
}
.mat-chip:not(.mat-basic-chip) {
@include mat-elevation-transition;
display: inline-flex;
padding: $mat-chip-vertical-padding $mat-chip-horizontal-padding $mat-chip-vertical-padding $mat-chip-horizontal-padding;
padding: $mat-chip-vertical-padding $mat-chip-horizontal-padding;
border-radius: $mat-chip-horizontal-padding * 2;
align-items: center;
cursor: default;
@@ -82,6 +83,7 @@ $mat-chips-chip-margin: 8px;
.mat-chip-remove {
margin-right: $mat-chip-remove-margin-after;
margin-left: $mat-chip-remove-margin-before;
cursor: pointer;
[dir='rtl'] & {
margin-right: $mat-chip-remove-margin-before;