// Copyright (c) 2016, the Dart project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

/// Changes the `$primary-color` in the material-radio.
///
/// Optionally specify a `$selector`. Example usage:
///     @include material-radio-theme(
///         $primary-color: $mat-teal-500,
///         $selector: '.custom-area');
@mixin material-radio-theme($primary-color, $selector: '') {
  ::ng-deep #{$selector} material-radio.themeable:not(.disabled) {
    .icon-container.checked {
      .icon,
      .ripple {
        color: $primary-color;
      }
    }
  }
}

// Copyright (c) 2016, the Dart project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

/// Changes the `$primary-color` in the material-radio.
///
/// Optionally specify a `$selector`. Example usage:
///     @include material-radio-theme(
///         $primary-color: $mat-teal-500,
///         $selector: '.custom-area');
@mixin material-radio-theme($primary-color, $selector: '') {
  @warn 'This mixin is deprecated. Please use material-radio-color().';

  ::ng-deep #{$selector} material-radio.themeable:not(.disabled) {
    .icon-container.checked {
      .icon,
      .ripple {
        color: $primary-color;
      }
    }
  }
}

/// Changes the color of the radio button.
///
/// Optional parameter $modifier is used for changing the color of certain
/// material-radio components rather than all material-radio components.
@mixin material-radio-color(
    $primary-color, $focus-indicator-color: $primary-color, $modifier: '') {
  ::ng-deep material-radio#{$modifier}:not(.disabled) .icon-container {
    &.checked .icon {
      color: $primary-color;
    }

    .ripple {
      color: $focus-indicator-color;
    }

    &.focus::after {
      background-color: $focus-indicator-color;
    }
  }
}


Add new material mixin without selector argument.
Add new material mixin without selector argument.

PiperOrigin-RevId: 200752597
