<commit_before>@import '../core/theming/theming';
@import '../core/styles/typography/typography-utils';
@import '../core/styles/common/popup';


@mixin mc-dropdown-theme($theme) {
    $foreground: map-get($theme, foreground);
    $background: map-get($theme, background);

    $selected-color: map-get(map-get($theme, states), selected-color);

    .mc-dropdown__panel {
        @include popup-params($theme);
    }

    .mc-dropdown__item {
        color: mc-color($foreground, text);

        background: transparent;

        &:hover {
            background: mc-color($background, overlay-hovered);
        }

        &.cdk-keyboard-focused {
            $focused-color: map-get(map-get($theme, states), focused-color);

            outline: $focused-color solid 2px;
            outline-offset: -2px;

            &.mc-link {
                outline-offset: -2px;
            }
        }

        &.mc-selected {
            background: $selected-color;
        }

        &[disabled],
        &.mc-disabled {
            color: mc-color($foreground, text-disabled);

            background: transparent;
        }

        .mc-dropdown__item-caption {
            color: mc-color($foreground, text-less-contrast);
        }
    }

    .mc-dropdown__item_highlighted:not([disabled]):not(.mc-disabled) {
        background: mc-color($background, overlay-hovered);
    }
}

@mixin mc-dropdown-typography($config) {
    .mc-dropdown__item,
    .mc-dropdown__content {
        @include mc-typography-level-to-styles($config, body);
    }

    .mc-dropdown__item-caption {
        @include mc-typography-level-to-styles($config, caption);
    }
}
<commit_msg>fix(dropdown): copy/paste doesn't work (#UIM-541) (#541)<commit_after>@import '../core/theming/theming';
@import '../core/styles/typography/typography-utils';
@import '../core/styles/common/popup';
@import '../core/styles/common/vendor-prefixes';


@mixin mc-dropdown-theme($theme) {
    $foreground: map-get($theme, foreground);
    $background: map-get($theme, background);

    $selected-color: map-get(map-get($theme, states), selected-color);

    .mc-dropdown__panel {
        @include popup-params($theme);
    }

    .mc-dropdown__item {
        @include user-select(text);

        color: mc-color($foreground, text);

        background: transparent;

        &:hover {
            background: mc-color($background, overlay-hovered);
        }

        &.cdk-keyboard-focused {
            $focused-color: map-get(map-get($theme, states), focused-color);

            outline: $focused-color solid 2px;
            outline-offset: -2px;

            &.mc-link {
                outline-offset: -2px;
            }
        }

        &.mc-selected {
            background: $selected-color;
        }

        &[disabled],
        &.mc-disabled {
            color: mc-color($foreground, text-disabled);

            background: transparent;
        }

        .mc-dropdown__item-caption {
            color: mc-color($foreground, text-less-contrast);
        }
    }

    .mc-dropdown__item_highlighted:not([disabled]):not(.mc-disabled) {
        background: mc-color($background, overlay-hovered);
    }
}

@mixin mc-dropdown-typography($config) {
    .mc-dropdown__item,
    .mc-dropdown__content {
        @include mc-typography-level-to-styles($config, body);
    }

    .mc-dropdown__item-caption {
        @include mc-typography-level-to-styles($config, caption);
    }
}

{'fraction_non_alphanumeric': 0.1514360313315927, 'fraction_numerical': 0.0034812880765883376, 'mean_word_length': 2.172033118675253, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2334', 'n_tokens_mistral': 1111, 'n_tokens_neox': 1052, 'n_words': 157}