libs/barista-components/tag/src/tag.scss
@import '../../style/font-mixins';
@import '../../core/src/style/variables';

$remove-icon-size: 16px;

:host {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;

  min-width: 30px;
  max-width: 350px;
  height: 24px;
  padding: 2px 8px;

  @include dt-label-font();
  text-decoration: none;
  outline: none;
  border: 1px solid $gray-130;
  background-color: $gray-130;
  border-radius: 12px;

  &.dt-tag-removable {
    padding-right: 0;
  }

  .dt-tag-remove-button {
    display: flex;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 0 4px;
    align-items: center;
    justify-content: center;

    ::ng-deep {
      .dt-button-icon {
        height: $remove-icon-size;
        width: $remove-icon-size;
        margin-top: 0;

        .dt-icon,
        svg {
          vertical-align: top;
        }
      }
    }
  }
}

.dt-tag-name {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  ::ng-deep .dt-tag-key {
    color: $gray-500;
    margin-right: 0.25em;
  }
}
