mirror of
https://github.com/material-components/material-web.git
synced 2024-09-11 13:46:10 +03:00
- Adds `--md-menu-item-selected-label-text-color` token BREAKING CHANGE: menu selected container color changed to secondary-container PiperOrigin-RevId: 565807703
52 lines
1.2 KiB
SCSS
52 lines
1.2 KiB
SCSS
//
|
|
// Copyright 2023 Google LLC
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
// go/keep-sorted start
|
|
@use 'sass:list';
|
|
@use 'sass:map';
|
|
@use 'sass:string';
|
|
// go/keep-sorted end
|
|
// go/keep-sorted start
|
|
@use './md-sys-color';
|
|
@use './md-sys-elevation';
|
|
@use './md-sys-shape';
|
|
@use './v0_192/md-comp-menu';
|
|
@use './values';
|
|
// go/keep-sorted end
|
|
|
|
$supported-tokens: (
|
|
// go/keep-sorted start
|
|
'container-color',
|
|
'container-elevation',
|
|
'container-shadow-color',
|
|
'container-shape',
|
|
// go/keep-sorted end
|
|
);
|
|
|
|
$unsupported-tokens: (
|
|
// go/keep-sorted start
|
|
'list-item-selected-container-color',
|
|
'list-item-selected-label-text-color',
|
|
'list-item-selected-with-leading-icon-trailing-icon-color',
|
|
'menu-list-item-with-leading-icon-icon-color',
|
|
// go/keep-sorted end
|
|
);
|
|
|
|
$_default: (
|
|
'md-sys-color': md-sys-color.values-light(),
|
|
'md-sys-elevation': md-sys-elevation.values(),
|
|
'md-sys-shape': md-sys-shape.values(),
|
|
);
|
|
|
|
@function values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
$tokens: values.validate(
|
|
md-comp-menu.values($deps),
|
|
$supported-tokens: $supported-tokens,
|
|
$unsupported-tokens: $unsupported-tokens
|
|
);
|
|
|
|
@return $tokens;
|
|
}
|