mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Andrew Seguin
parent
2388d91642
commit
82535039a2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user