<commit_before>@import '../mdc-helpers/mdc-helpers';
@import '@material/radio/mixins';
@import '@material/radio/variables';

@mixin mat-mdc-radio-theme($theme) {
  // Save original values of MDC global variables. We need to save these so we can restore the
  // variables to their original values and prevent unintended side effects from using this mixin.
  $orig-mdc-radio-baseline-theme-color: $mdc-radio-baseline-theme-color;

  @include mat-using-mdc-theme($theme) {
    $mdc-radio-baseline-theme-color: primary !global;

    .mat-mdc-radio-button {
      &.mat-primary {
        @include mdc-radio-without-ripple($query: $mat-theme-styles-query);
      }

      &.mat-accent {
        $mdc-radio-baseline-theme-color: secondary !global;
        @include mdc-radio-without-ripple($query: $mat-theme-styles-query);
      }

      &.mat-warn {
        $mdc-radio-baseline-theme-color: error !global;
        @include mdc-radio-without-ripple($query: $mat-theme-styles-query);
      }
    }
  }

  // Restore original values of MDC global variables.
  $mdc-radio-baseline-theme-color: $orig-mdc-radio-baseline-theme-color !global;
}

@mixin mat-mdc-radio-typography($config) {
  @include mat-using-mdc-typography($config) {<commit_msg>fix(material-experimental/radio): redefine theme variables (#18907)<commit_after>@import '../mdc-helpers/mdc-helpers';
@import '@material/radio/mixins';
@import '@material/radio/variables';
@import '@material/theme/functions.import';

@mixin mat-mdc-radio-theme($theme) {
  // Save original values of MDC global variables. We need to save these so we can restore the
  // variables to their original values and prevent unintended side effects from using this mixin.
  $orig-mdc-radio-baseline-theme-color: $mdc-radio-baseline-theme-color;
  $orig-mdc-radio-unchecked-color: $mdc-radio-unchecked-color;
  $orig-mdc-radio-disabled-circle-color: $mdc-radio-disabled-circle-color;

  @include mat-using-mdc-theme($theme) {
    $mdc-radio-baseline-theme-color: primary !global;
    $mdc-radio-unchecked-color: rgba(mdc-theme-prop-value(on-surface), 0.54) !global;
    $mdc-radio-disabled-circle-color: rgba(mdc-theme-prop-value(on-surface), 0.38) !global;

    .mat-mdc-radio-button {
      &.mat-primary {
        @include mdc-radio-without-ripple($query: $mat-theme-styles-query);
      }

      &.mat-accent {
        $mdc-radio-baseline-theme-color: secondary !global;
        @include mdc-radio-without-ripple($query: $mat-theme-styles-query);
      }

      &.mat-warn {
        $mdc-radio-baseline-theme-color: error !global;
        @include mdc-radio-without-ripple($query: $mat-theme-styles-query);
      }
    }
  }

  // Restore original values of MDC global variables.
  $mdc-radio-baseline-theme-color: $orig-mdc-radio-baseline-theme-color !global;
  $mdc-radio-unchecked-color: $orig-mdc-radio-unchecked-color !global;
  $mdc-radio-disabled-circle-color: $orig-mdc-radio-disabled-circle-color !global;
}

@mixin mat-mdc-radio-typography($config) {
  @include mat-using-mdc-typography($config) {
{'fraction_non_alphanumeric': 0.15230263157894736, 'fraction_numerical': 0.003618421052631579, 'mean_word_length': 3.4394160583941606, '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': '6982820', 'n_tokens_mistral': 1066, 'n_tokens_neox': 1023, 'n_words': 182}