<commit_before>@import '../core/a11y/a11y';
@import '../core/style/elevation';

$mat-chip-vertical-padding: 7px;
$mat-chip-horizontal-padding: 12px;
$mat-chip-remove-margin-before: 6px;
$mat-chip-remove-margin-after: -4px;

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

.mat-chip-list-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
}

.mat-chip:not(.mat-basic-chip) {
  display: inline-flex;
  padding: $mat-chip-vertical-padding $mat-chip-horizontal-padding $mat-chip-vertical-padding $mat-chip-horizontal-padding;
  border-radius: $mat-chip-horizontal-padding * 2;
  align-items: center;
  cursor: default;

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

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

  .mat-input-prefix & {
    &:last-child {
      margin-right: $mat-chips-chip-margin;
    }

    [dir='rtl'] &:last-child {
      margin-left: $mat-chips-chip-margin;
    }
  }

  .mat-chip-remove.mat-icon {
    width: 1em;
    height: 1em;
  }

  &:focus {
    @include mat-elevation(3);
    outline: none;
  }

  @include cdk-high-contrast {
    outline: solid 1px;
  }
}

.mat-chip-list-stacked .mat-chip-list-wrapper {
  display: block;

  .mat-chip:not(.mat-basic-chip) {
    display: block;
    margin: 0;
    margin-bottom: $mat-chips-chip-margin;

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

    &:last-child, [dir='rtl'] &:last-child {
      margin-bottom: 0;
    }
  }
}

.mat-input-prefix .mat-chip-list-wrapper {
  margin-bottom: $mat-chips-chip-margin;
}

.mat-chip-remove {
  margin-right: $mat-chip-remove-margin-after;
  margin-left: $mat-chip-remove-margin-before;

  [dir='rtl'] & {
    margin-right: $mat-chip-remove-margin-before;
    margin-left: $mat-chip-remove-margin-after;
  }
}<commit_msg>fix(chips): cursor on remove button and box-shadow transition (#6019)<commit_after>@import '../core/a11y/a11y';
@import '../core/style/elevation';

$mat-chip-vertical-padding: 7px;
$mat-chip-horizontal-padding: 12px;
$mat-chip-remove-margin-before: 6px;
$mat-chip-remove-margin-after: -4px;

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

.mat-chip-list-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
}

.mat-chip:not(.mat-basic-chip) {
  @include mat-elevation-transition;
  display: inline-flex;
  padding: $mat-chip-vertical-padding $mat-chip-horizontal-padding;
  border-radius: $mat-chip-horizontal-padding * 2;
  align-items: center;
  cursor: default;

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

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

  .mat-input-prefix & {
    &:last-child {
      margin-right: $mat-chips-chip-margin;
    }

    [dir='rtl'] &:last-child {
      margin-left: $mat-chips-chip-margin;
    }
  }

  .mat-chip-remove.mat-icon {
    width: 1em;
    height: 1em;
  }

  &:focus {
    @include mat-elevation(3);
    outline: none;
  }

  @include cdk-high-contrast {
    outline: solid 1px;
  }
}

.mat-chip-list-stacked .mat-chip-list-wrapper {
  display: block;

  .mat-chip:not(.mat-basic-chip) {
    display: block;
    margin: 0;
    margin-bottom: $mat-chips-chip-margin;

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

    &:last-child, [dir='rtl'] &:last-child {
      margin-bottom: 0;
    }
  }
}

.mat-input-prefix .mat-chip-list-wrapper {
  margin-bottom: $mat-chips-chip-margin;
}

.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;
    margin-left: $mat-chip-remove-margin-after;
  }
}
{'fraction_non_alphanumeric': 0.17741090146750524, 'fraction_numerical': 0.013626834381551363, 'mean_word_length': 2.7942345924453282, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7427537', 'n_tokens_mistral': 1555, 'n_tokens_neox': 1470, 'n_words': 238}