// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP

// // This updates the primary Anchors and Anchors with icons
// // to $brand-color while maintaining inherit for
// // non primary Anchors.
// //
// // The non primary links are kept as text color to maintain
// // accessability as the HPE $brand-color is not considered
// // accessible below 19px.
// @mixin link-color-check($link-color, $updated-color) {
//   @if $link-color == 'inherit' {
//     color: $updated-color;
//   }
// }

.#{$grommet-namespace}anchor--primary,
.#{$grommet-namespace}anchor--icon-label,
.#{$grommet-namespace}anchor--primary:visited,
.#{$grommet-namespace}anchor--icon-label:visited {
  // @include link-color-check($link-color, $brand-color);
  color: $brand-color;

  @include background-context-color($brand-color, $brand-color);
  @include background-context-icon($brand-color, $brand-color);
}
