@use 'sass:map';
@use '../../../mx-core/src/base/colors';
@use '../../../mx-core/src/base/opacity' as op;

@mixin mx-list-item-theme($theme) {
  $is-dark: map.get($theme, is-dark);
  $color-theme: colors.$mx-light;

  @if $is-dark == true {
    $color-theme: colors.$mx-dark;
  }
  .mx-list-item {
    &:hover {
      .mx-list-item--ripple:not(.disabled) {
        background-color: rgba(map.get($color-theme, onSurface), op.$opacity-8);
      }
    }

    &__description {
      color: map.get($color-theme, onSurfaceVariant);
    }
  }
}
