/**
 * Bootstrap alert
 */

@use "../settings" as *;
@use "../tools" as *;

@import "bootstrap/scss/alert";

// Enforce link styling when .alert-link class is missed
.alert a {
  @extend .alert-link;
}

@each $state in map-keys($theme-colors) {
  .alert-#{$state} {
    --#{$prefix}link-color-rgb: var(--#{$prefix}#{$state}-text-emphasis-rgb);
    --#{$prefix}link-hover-color-rgb: var(--#{$prefix}#{$state}-text-emphasis-rgb);
  }
}
