Skip to content

Commit

Permalink
fix(chips): cursor on remove button and box-shadow transition (#6019)
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 authored and andrewseguin committed Jul 28, 2017
1 parent 2388d91 commit 8253503
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/chips/chips.scss
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 8253503

Please sign in to comment.