graycoreio/daffodil

View on GitHub
libs/design/card/src/card-theme-variants/linkable-card.scss

Summary

Maintainability
Test Coverage
@use '../../../scss/theming';

@mixin daff-linkable-card-theme-variant(
    $hover-color,
) {
    .daff-card__wrapper {
        &:after {
            background: $hover-color;
        }
    }

    &:hover,
    &:focus {
        color: theming.daff-text-contrast($hover-color);
    }
}