Skip to content

Commit

Permalink
fix(chips): cursor on remove button and box-shadow transition
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
crisbeto committed Jul 25, 2017
1 parent 374aaff commit 197d12b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/chips/chips.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 197d12b

Please sign in to comment.