<commit_before>.pf-c-toggle-group {
  // button
  --pf-c-toggle-group__button--PaddingTop: var(--pf-global--spacer--form-element);
  --pf-c-toggle-group__button--PaddingRight: var(--pf-global--spacer--md);
  --pf-c-toggle-group__button--PaddingBottom: var(--pf-global--spacer--form-element);
  --pf-c-toggle-group__button--PaddingLeft: var(--pf-global--spacer--md);
  --pf-c-toggle-group__button--FontSize: var(--pf-global--FontSize--sm);
  --pf-c-toggle-group__button--LineHeight: calc(var(--pf-global--FontSize--md) * var(--pf-global--LineHeight--md));
  --pf-c-toggle-group__button--Color: var(--pf-global--Color--100);
  --pf-c-toggle-group__button--BackgroundColor: var(--pf-global--BackgroundColor--100);
  --pf-c-toggle-group__button--ZIndex: auto;
  --pf-c-toggle-group__button--hover--BackgroundColor: var(--pf-global--BackgroundColor--200);
  --pf-c-toggle-group__button--hover--ZIndex: var(--pf-global--ZIndex--xs);
  --pf-c-toggle-group__button--hover--after--BorderColor: var(--pf-global--BorderColor--200);
  --pf-c-toggle-group__button--focus--BackgroundColor: var(--pf-global--BackgroundColor--200);
  --pf-c-toggle-group__button--focus--ZIndex: var(--pf-global--ZIndex--xs);
  --pf-c-toggle-group__button--focus--after--BorderColor: var(--pf-global--BorderColor--200);
  --pf-c-toggle-group__button--disabled--BackgroundColor: var(--pf-global--disabled-color--200);
  --pf-c-toggle-group__button--disabled--Color: var(--pf-global--disabled-color--100);
  --pf-c-toggle-group__button--after--BorderWidth: var(--pf-global--BorderWidth--sm);
  --pf-c-toggle-group__button--after--BorderColor: var(--pf-global--BorderColor--100);

  // item
  --pf-c-toggle-group__item--item--MarginLeft: calc(-1 * var(--pf-global--BorderWidth--sm));
  --pf-c-toggle-group__item--first-child__button--BorderTopLeftRadius: var(--pf-global--BorderRadius--sm);
  --pf-c-toggle-group__item--first-child__button--BorderBottomLeftRadius: var(--pf-global--BorderRadius--sm);
  --pf-c-toggle-group__item--last-child__button--BorderTopRightRadius: var(--pf-global--BorderRadius--sm);
  --pf-c-toggle-group__item--last-child__button--BorderBottomRightRadius: var(--pf-global--BorderRadius--sm);

  // icon
  --pf-c-toggle-group__icon--text--MarginLeft: var(--pf-global--spacer--sm);

  // Selected
  --pf-c-toggle-group__button--m-selected--BackgroundColor: var(--pf-global--palette--blue-50);
  --pf-c-toggle-group__button--m-selected--after--BorderColor: var(--pf-global--primary-color--100);
  --pf-c-toggle-group__button--m-selected--ZIndex: var(--pf-global--ZIndex--xs);

  // Compact
  --pf-c-toggle-group--m-compact__button--PaddingTop: 0;
  --pf-c-toggle-group--m-compact__button--PaddingRight: var(--pf-global--spacer--sm);
  --pf-c-toggle-group--m-compact__button--PaddingBottom: 0;
  --pf-c-toggle-group--m-compact__button--PaddingLeft: var(--pf-global--spacer--sm);
  --pf-c-toggle-group--m-compact__button--FontSize: var(--pf-global--FontSize--xs);

  display: flex;

  &.pf-m-compact {
    --pf-c-toggle-group__button--PaddingTop: var(--pf-c-toggle-group--m-compact__button--PaddingTop);
    --pf-c-toggle-group__button--PaddingRight: var(--pf-c-toggle-group--m-compact__button--PaddingRight);
    --pf-c-toggle-group__button--PaddingBottom: var(--pf-c-toggle-group--m-compact__button--PaddingBottom);
    --pf-c-toggle-group__button--PaddingLeft: var(--pf-c-toggle-group--m-compact__button--PaddingLeft);
    --pf-c-toggle-group__button--FontSize: var(--pf-c-toggle-group--m-compact__button--FontSize);
  }
}

.pf-c-toggle-group__item {
  & + & {
    margin-left: var(--pf-c-toggle-group__item--item--MarginLeft);
  }

  &:first-child {
    .pf-c-toggle-group__button {
      &,
      &::after {
        border-top-left-radius: var(--pf-c-toggle-group__item--first-child__button--BorderTopLeftRadius);
        border-bottom-left-radius: var(--pf-c-toggle-group__item--first-child__button--BorderBottomLeftRadius);
      }
    }
  }

  &:last-child {
    .pf-c-toggle-group__button {
      &,
      &::after {
        border-top-right-radius: var(--pf-c-toggle-group__item--last-child__button--BorderTopRightRadius);
        border-bottom-right-radius: var(--pf-c-toggle-group__item--last-child__button--BorderBottomRightRadius);
      }
    }
  }
}

.pf-c-toggle-group__button {
  position: relative;
  z-index: var(--pf-c-toggle-group__button--ZIndex);
  display: inline-flex;
  padding: var(--pf-c-toggle-group__button--PaddingTop) var(--pf-c-toggle-group__button--PaddingRight) var(--pf-c-toggle-group__button--PaddingBottom) var(--pf-c-toggle-group__button--PaddingLeft);
  font-size: var(--pf-c-toggle-group__button--FontSize);
  line-height: var(--pf-c-toggle-group__button--LineHeight);
  color: var(--pf-c-toggle-group__button--Color);
  background-color: var(--pf-c-toggle-group__button--BackgroundColor);
  border: 0;

  &::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    content: "";
    border: var(--pf-c-toggle-group__button--after--BorderWidth) solid var(--pf-c-toggle-group__button--after--BorderColor);
  }

  &:hover {
    --pf-c-toggle-group__button--BackgroundColor: var(--pf-c-toggle-group__button--hover--BackgroundColor);
    --pf-c-toggle-group__button--ZIndex: var(--pf-c-toggle-group__button--hover--ZIndex);
    --pf-c-toggle-group__button--after--BorderColor: var(--pf-c-toggle-group__button--hover--after--BorderColor);

    text-decoration: none;
  }

  &:focus {
    --pf-c-toggle-group__button--BackgroundColor: var(--pf-c-toggle-group__button--focus--BackgroundColor);
    --pf-c-toggle-group__button--ZIndex: var(--pf-c-toggle-group__button--focus--ZIndex);
    --pf-c-toggle-group__button--after--BorderColor: var(--pf-c-toggle-group__button--focus--after--BorderColor);
  }

  &.pf-m-selected {
    --pf-c-toggle-group__button--BackgroundColor: var(--pf-c-toggle-group__button--m-selected--BackgroundColor);
    --pf-c-toggle-group__button--ZIndex: var(--pf-c-toggle-group__button--m-selected--ZIndex);
    --pf-c-toggle-group__button--after--BorderColor: var(--pf-c-toggle-group__button--m-selected--after--BorderColor);
  }

  &:disabled,
  &.pf-m-disabled {
    --pf-c-toggle-group__button--BackgroundColor: var(--pf-c-toggle-group__button--disabled--BackgroundColor);
    --pf-c-toggle-group__button--Color: var(--pf-c-toggle-group__button--disabled--Color);

    pointer-events: none;
  }
}

.pf-c-toggle-group__icon + .pf-c-toggle-group__text,
.pf-c-toggle-group__text + .pf-c-toggle-group__icon {
  margin-left: var(--pf-c-toggle-group__icon--text--MarginLeft);
}<commit_msg>fix(toggle-group): moved borders to before pseudo element (#4059)<commit_after>.pf-c-toggle-group {
  // button
  --pf-c-toggle-group__button--PaddingTop: var(--pf-global--spacer--form-element);
  --pf-c-toggle-group__button--PaddingRight: var(--pf-global--spacer--md);
  --pf-c-toggle-group__button--PaddingBottom: var(--pf-global--spacer--form-element);
  --pf-c-toggle-group__button--PaddingLeft: var(--pf-global--spacer--md);
  --pf-c-toggle-group__button--FontSize: var(--pf-global--FontSize--sm);
  --pf-c-toggle-group__button--LineHeight: calc(var(--pf-global--FontSize--md) * var(--pf-global--LineHeight--md));
  --pf-c-toggle-group__button--Color: var(--pf-global--Color--100);
  --pf-c-toggle-group__button--BackgroundColor: var(--pf-global--BackgroundColor--100);
  --pf-c-toggle-group__button--ZIndex: auto;
  --pf-c-toggle-group__button--hover--BackgroundColor: var(--pf-global--BackgroundColor--200);
  --pf-c-toggle-group__button--hover--ZIndex: var(--pf-global--ZIndex--xs);
  --pf-c-toggle-group__button--hover--before--BorderColor: var(--pf-global--BorderColor--200);
  --pf-c-toggle-group__button--focus--BackgroundColor: var(--pf-global--BackgroundColor--200);
  --pf-c-toggle-group__button--focus--ZIndex: var(--pf-global--ZIndex--xs);
  --pf-c-toggle-group__button--focus--before--BorderColor: var(--pf-global--BorderColor--200);
  --pf-c-toggle-group__button--disabled--BackgroundColor: var(--pf-global--disabled-color--200);
  --pf-c-toggle-group__button--disabled--Color: var(--pf-global--disabled-color--100);
  --pf-c-toggle-group__button--before--BorderWidth: var(--pf-global--BorderWidth--sm);
  --pf-c-toggle-group__button--before--BorderColor: var(--pf-global--BorderColor--100);

  // item
  --pf-c-toggle-group__item--item--MarginLeft: calc(-1 * var(--pf-global--BorderWidth--sm));
  --pf-c-toggle-group__item--first-child__button--BorderTopLeftRadius: var(--pf-global--BorderRadius--sm);
  --pf-c-toggle-group__item--first-child__button--BorderBottomLeftRadius: var(--pf-global--BorderRadius--sm);
  --pf-c-toggle-group__item--last-child__button--BorderTopRightRadius: var(--pf-global--BorderRadius--sm);
  --pf-c-toggle-group__item--last-child__button--BorderBottomRightRadius: var(--pf-global--BorderRadius--sm);

  // icon
  --pf-c-toggle-group__icon--text--MarginLeft: var(--pf-global--spacer--sm);

  // Selected
  --pf-c-toggle-group__button--m-selected--BackgroundColor: var(--pf-global--palette--blue-50);
  --pf-c-toggle-group__button--m-selected--before--BorderColor: var(--pf-global--primary-color--100);
  --pf-c-toggle-group__button--m-selected--ZIndex: var(--pf-global--ZIndex--xs);

  // Compact
  --pf-c-toggle-group--m-compact__button--PaddingTop: 0;
  --pf-c-toggle-group--m-compact__button--PaddingRight: var(--pf-global--spacer--sm);
  --pf-c-toggle-group--m-compact__button--PaddingBottom: 0;
  --pf-c-toggle-group--m-compact__button--PaddingLeft: var(--pf-global--spacer--sm);
  --pf-c-toggle-group--m-compact__button--FontSize: var(--pf-global--FontSize--xs);

  display: flex;

  &.pf-m-compact {
    --pf-c-toggle-group__button--PaddingTop: var(--pf-c-toggle-group--m-compact__button--PaddingTop);
    --pf-c-toggle-group__button--PaddingRight: var(--pf-c-toggle-group--m-compact__button--PaddingRight);
    --pf-c-toggle-group__button--PaddingBottom: var(--pf-c-toggle-group--m-compact__button--PaddingBottom);
    --pf-c-toggle-group__button--PaddingLeft: var(--pf-c-toggle-group--m-compact__button--PaddingLeft);
    --pf-c-toggle-group__button--FontSize: var(--pf-c-toggle-group--m-compact__button--FontSize);
  }
}

.pf-c-toggle-group__item {
  & + & {
    margin-left: var(--pf-c-toggle-group__item--item--MarginLeft);
  }

  &:first-child {
    .pf-c-toggle-group__button {
      &,
      &::before {
        border-top-left-radius: var(--pf-c-toggle-group__item--first-child__button--BorderTopLeftRadius);
        border-bottom-left-radius: var(--pf-c-toggle-group__item--first-child__button--BorderBottomLeftRadius);
      }
    }
  }

  &:last-child {
    .pf-c-toggle-group__button {
      &,
      &::before {
        border-top-right-radius: var(--pf-c-toggle-group__item--last-child__button--BorderTopRightRadius);
        border-bottom-right-radius: var(--pf-c-toggle-group__item--last-child__button--BorderBottomRightRadius);
      }
    }
  }
}

.pf-c-toggle-group__button {
  position: relative;
  z-index: var(--pf-c-toggle-group__button--ZIndex);
  display: inline-flex;
  padding: var(--pf-c-toggle-group__button--PaddingTop) var(--pf-c-toggle-group__button--PaddingRight) var(--pf-c-toggle-group__button--PaddingBottom) var(--pf-c-toggle-group__button--PaddingLeft);
  font-size: var(--pf-c-toggle-group__button--FontSize);
  line-height: var(--pf-c-toggle-group__button--LineHeight);
  color: var(--pf-c-toggle-group__button--Color);
  background-color: var(--pf-c-toggle-group__button--BackgroundColor);
  border: 0;

  &::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    content: "";
    border: var(--pf-c-toggle-group__button--before--BorderWidth) solid var(--pf-c-toggle-group__button--before--BorderColor);
  }

  &:hover {
    --pf-c-toggle-group__button--BackgroundColor: var(--pf-c-toggle-group__button--hover--BackgroundColor);
    --pf-c-toggle-group__button--ZIndex: var(--pf-c-toggle-group__button--hover--ZIndex);
    --pf-c-toggle-group__button--before--BorderColor: var(--pf-c-toggle-group__button--hover--before--BorderColor);

    text-decoration: none;
  }

  &:focus {
    --pf-c-toggle-group__button--BackgroundColor: var(--pf-c-toggle-group__button--focus--BackgroundColor);
    --pf-c-toggle-group__button--ZIndex: var(--pf-c-toggle-group__button--focus--ZIndex);
    --pf-c-toggle-group__button--before--BorderColor: var(--pf-c-toggle-group__button--focus--before--BorderColor);
  }

  &.pf-m-selected {
    --pf-c-toggle-group__button--BackgroundColor: var(--pf-c-toggle-group__button--m-selected--BackgroundColor);
    --pf-c-toggle-group__button--ZIndex: var(--pf-c-toggle-group__button--m-selected--ZIndex);
    --pf-c-toggle-group__button--before--BorderColor: var(--pf-c-toggle-group__button--m-selected--before--BorderColor);
  }

  &:disabled,
  &.pf-m-disabled {
    --pf-c-toggle-group__button--BackgroundColor: var(--pf-c-toggle-group__button--disabled--BackgroundColor);
    --pf-c-toggle-group__button--Color: var(--pf-c-toggle-group__button--disabled--Color);

    pointer-events: none;
  }
}

.pf-c-toggle-group__icon + .pf-c-toggle-group__text,
.pf-c-toggle-group__text + .pf-c-toggle-group__icon {
  margin-left: var(--pf-c-toggle-group__icon--text--MarginLeft);
}
{'fraction_non_alphanumeric': 0.20759703972209637, 'fraction_numerical': 0.006343452650657001, 'mean_word_length': 3.1527124490435874, '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': '5523528', 'n_tokens_mistral': 4825, 'n_tokens_neox': 4715, 'n_words': 369}