graycoreio/daffodil

View on GitHub
libs/design/accordion/src/accordion-theme.scss

Summary

Maintainability
Test Coverage
@use 'sass:map';
@use '../../scss/core';
@use '../../scss/theming';

@mixin daff-accordion-theme($theme) {
    $neutral: core.daff-map-deep-get($theme, 'core.neutral');
    $base: core.daff-map-deep-get($theme, 'core.base');

    .daff-accordion-item {
        border-top: 1px solid theming.daff-illuminate($base, $neutral, 2);

        &:last-child {
            border-bottom: 1px solid theming.daff-illuminate($base, $neutral, 2);
        }
        
        &__header {
            &:after {
                border-color: currentColor;
            }
        }
    }
}