Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/material/badge/_m2-badge.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
@use 'sass:map';
@use 'sass:math';
@use '../core/theming/inspection';
@use '../core/tokens/m2-utils';
@use '../core/tokens/m3-utils';

$_default-size: 22px;
$_small-size: $_default-size - 6px;
Expand Down Expand Up @@ -39,11 +41,13 @@ $_large-size: $_default-size + 6px;

// Tokens that can be configured through Angular Material's color theming API.
@function get-color-tokens($theme) {
$system: m2-utils.get-system($theme);
$disabled: m3-utils.color-with-opacity(map.get($system, on-surface), 38%);
$disabled-container : m3-utils.color-with-opacity(map.get($system, on-surface), 12%);
$primary-color-tokens: private-get-color-palette-color-tokens($theme, primary);
@return map.merge($primary-color-tokens, (
badge-disabled-state-background-color:
inspection.get-theme-color($theme, foreground, disabled-button),
badge-disabled-state-text-color: inspection.get-theme-color($theme, foreground, disabled-text),
badge-disabled-state-background-color: $disabled-container,
badge-disabled-state-text-color: $disabled,
));
}

Expand Down
Loading