@angular/material 18.0.4 → 18.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/badge/index.d.ts +5 -2
- package/button/_button-base.scss +3 -1
- package/button/_fab-theme.scss +16 -16
- package/button/_icon-button-theme.scss +14 -20
- package/button/index.d.ts +7 -0
- package/button-toggle/index.d.ts +2 -2
- package/card/_card-theme.scss +25 -52
- package/checkbox/index.d.ts +4 -2
- package/chips/_chips-theme.scss +22 -24
- package/core/m2/_typography.scss +5 -2
- package/core/mdc-helpers/_mdc-helpers.scss +2 -2
- package/core/style/_elevation.scss +5 -0
- package/core/style/_vendor-prefixes.scss +5 -0
- package/core/tokens/_density.scss +1 -1
- package/core/tokens/_token-utils.scss +2 -2
- package/core/tokens/m2/_index.scss +2 -2
- package/core/tokens/m2/mat/_app.scss +1 -2
- package/core/tokens/m2/mat/_autocomplete.scss +2 -2
- package/core/tokens/m2/mat/_datepicker.scss +3 -3
- package/core/tokens/m2/mat/_dialog.scss +2 -2
- package/core/tokens/m2/mat/_fab-small.scss +3 -9
- package/core/tokens/m2/mat/_fab.scss +3 -9
- package/core/tokens/m2/mat/_filled-button.scss +3 -9
- package/core/tokens/m2/mat/_form-field.scss +9 -6
- package/core/tokens/m2/mat/_icon-button.scss +3 -9
- package/core/tokens/m2/mat/_outlined-button.scss +3 -9
- package/core/tokens/m2/mat/_paginator.scss +10 -6
- package/core/tokens/m2/mat/_protected-button.scss +3 -9
- package/core/tokens/m2/mat/_select.scss +2 -2
- package/core/tokens/m2/mat/_sidenav.scss +2 -2
- package/core/tokens/m2/mat/_text-button.scss +3 -9
- package/core/tokens/m2/mdc/_chip.scss +2 -14
- package/core/tokens/m2/mdc/_elevated-card.scss +3 -7
- package/core/tokens/m2/mdc/_extended-fab.scss +12 -8
- package/core/tokens/m2/mdc/_fab-small.scss +15 -13
- package/core/tokens/m2/mdc/_fab.scss +15 -13
- package/core/tokens/m2/mdc/_outlined-card.scss +2 -6
- package/core/tokens/m2/mdc/{_tab.scss → _secondary-navigation-tab.scss} +1 -1
- package/core/tokens/m3/_index.scss +2 -2
- package/core/tokens/m3/mat/_app.scss +2 -2
- package/core/tokens/m3/mat/_autocomplete.scss +2 -2
- package/core/tokens/m3/mat/_datepicker.scss +3 -3
- package/core/tokens/m3/mat/_select.scss +2 -2
- package/core/tokens/m3/mdc/_chip.scss +1 -4
- package/core/tokens/m3/mdc/_elevated-card.scss +9 -2
- package/core/tokens/m3/mdc/_extended-fab.scss +19 -2
- package/core/tokens/m3/mdc/_fab-small.scss +19 -2
- package/core/tokens/m3/mdc/_fab.scss +19 -2
- package/core/tokens/m3/mdc/_outlined-card.scss +9 -2
- package/core/tokens/m3/mdc/{_tab.scss → _secondary-navigation-tab.scss} +1 -1
- package/datepicker/index.d.ts +8 -4
- package/esm2022/badge/badge.mjs +6 -3
- package/esm2022/button/button-base.mjs +3 -3
- package/esm2022/button/button.mjs +4 -4
- package/esm2022/button/fab.mjs +9 -9
- package/esm2022/button/icon-button.mjs +4 -4
- package/esm2022/button-toggle/button-toggle.mjs +30 -21
- package/esm2022/card/card.mjs +2 -2
- package/esm2022/checkbox/checkbox-config.mjs +1 -1
- package/esm2022/chips/chip-grid.mjs +2 -2
- package/esm2022/chips/chip-listbox.mjs +2 -2
- package/esm2022/chips/chip-option.mjs +3 -3
- package/esm2022/chips/chip-row.mjs +3 -3
- package/esm2022/chips/chip-set.mjs +2 -2
- package/esm2022/chips/chip.mjs +3 -3
- package/esm2022/core/ripple/ripple-renderer.mjs +21 -3
- package/esm2022/core/version.mjs +1 -1
- package/esm2022/datepicker/calendar.mjs +6 -3
- package/esm2022/datepicker/datepicker-base.mjs +6 -4
- package/esm2022/dialog/dialog-container.mjs +3 -3
- package/esm2022/form-field/form-field.mjs +1 -1
- package/esm2022/list/list-option.mjs +8 -2
- package/esm2022/progress-bar/progress-bar.mjs +10 -4
- package/esm2022/progress-spinner/progress-spinner.mjs +8 -2
- package/esm2022/radio/radio.mjs +10 -4
- package/esm2022/sidenav/drawer.mjs +4 -1
- package/esm2022/slide-toggle/slide-toggle-config.mjs +1 -1
- package/esm2022/slide-toggle/slide-toggle.mjs +3 -3
- package/esm2022/slider/slider.mjs +1 -1
- package/esm2022/tabs/tab-group.mjs +9 -4
- package/esm2022/tabs/tab-header.mjs +3 -3
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +12 -6
- package/esm2022/tooltip/tooltip.mjs +3 -3
- package/fesm2022/badge.mjs +5 -2
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +29 -20
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +18 -18
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card.mjs +2 -2
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips.mjs +12 -12
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core.mjs +21 -3
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +10 -5
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog.mjs +2 -2
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/list.mjs +7 -1
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +9 -3
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +7 -1
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio.mjs +9 -3
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +4 -1
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +2 -2
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/tabs.mjs +21 -10
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +2 -2
- package/fesm2022/tooltip.mjs.map +1 -1
- package/form-field/_form-field-subscript.scss +2 -2
- package/form-field/_mdc-text-field-structure-overrides.scss +2 -3
- package/form-field/index.d.ts +4 -2
- package/list/_list-option-trailing-avatar-compat.scss +26 -25
- package/list/index.d.ts +7 -1
- package/package.json +2 -2
- package/prebuilt-themes/azure-blue.css +1 -1
- package/prebuilt-themes/cyan-orange.css +1 -1
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/magenta-violet.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/prebuilt-themes/rose-red.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +10 -7
- package/progress-bar/index.d.ts +14 -2
- package/progress-spinner/index.d.ts +14 -2
- package/radio/index.d.ts +14 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/sidenav/index.d.ts +1 -0
- package/slide-toggle/index.d.ts +7 -1
- package/slider/index.d.ts +7 -1
- package/tabs/_tabs-common.scss +94 -36
- package/tabs/_tabs-theme.scss +33 -25
- package/tabs/index.d.ts +20 -3
- package/tooltip/_tooltip-theme.scss +18 -16
package/tabs/_tabs-common.scss
CHANGED
|
@@ -1,29 +1,86 @@
|
|
|
1
|
-
@use '@material/ripple' as mdc-ripple;
|
|
2
|
-
@use '@material/tab' as mdc-tab;
|
|
3
|
-
@use '@material/tab-indicator' as mdc-tab-indicator;
|
|
4
|
-
@use '@material/tab-indicator/tab-indicator-theme' as mdc-tab-indicator-theme;
|
|
5
|
-
@use '@material/tab/tab-theme' as mdc-tab-theme;
|
|
6
|
-
@use '@material/theme/custom-properties' as mdc-custom-properties;
|
|
7
|
-
@use '../core/mdc-helpers/mdc-helpers';
|
|
8
1
|
@use '../core/style/vendor-prefixes';
|
|
9
2
|
@use '../core/tokens/m2/mdc/tab-indicator' as tokens-mdc-tab-indicator;
|
|
10
|
-
@use '../core/tokens/m2/mdc/tab' as tokens-mdc-tab;
|
|
3
|
+
@use '../core/tokens/m2/mdc/secondary-navigation-tab' as tokens-mdc-secondary-navigation-tab;
|
|
11
4
|
@use '../core/tokens/m2/mat/tab-header' as tokens-mat-tab-header;
|
|
12
5
|
@use '../core/tokens/m2/mat/tab-header-with-background' as tokens-mat-tab-header-with-background;
|
|
13
6
|
@use '../core/tokens/token-utils';
|
|
14
|
-
@use 'sass:map';
|
|
15
7
|
|
|
16
8
|
|
|
17
9
|
$mat-tab-animation-duration: 500ms !default;
|
|
18
10
|
|
|
19
11
|
// Combines the various structural styles we need for the tab group and tab nav bar.
|
|
20
12
|
@mixin structural-styles {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
13
|
+
.mdc-tab {
|
|
14
|
+
min-width: 90px;
|
|
15
|
+
padding: 0 24px;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex: 1 0 auto;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
border: none;
|
|
21
|
+
outline: none;
|
|
22
|
+
text-align: center;
|
|
23
|
+
white-space: nowrap;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
z-index: 1;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.mdc-tab__content {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
height: inherit;
|
|
33
|
+
pointer-events: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.mdc-tab__text-label {
|
|
37
|
+
transition: 150ms color linear;
|
|
38
|
+
display: inline-block;
|
|
39
|
+
line-height: 1;
|
|
40
|
+
z-index: 2;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.mdc-tab--active .mdc-tab__text-label {
|
|
44
|
+
transition-delay: 100ms;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
._mat-animation-noopable .mdc-tab__text-label {
|
|
48
|
+
transition: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.mdc-tab-indicator {
|
|
52
|
+
display: flex;
|
|
53
|
+
position: absolute;
|
|
54
|
+
top: 0;
|
|
55
|
+
left: 0;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
width: 100%;
|
|
58
|
+
height: 100%;
|
|
59
|
+
pointer-events: none;
|
|
60
|
+
z-index: 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.mdc-tab-indicator__content {
|
|
64
|
+
transition: var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);
|
|
65
|
+
transform-origin: left;
|
|
66
|
+
opacity: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.mdc-tab-indicator__content--underline {
|
|
70
|
+
align-self: flex-end;
|
|
71
|
+
box-sizing: border-box;
|
|
72
|
+
width: 100%;
|
|
73
|
+
border-top-style: solid;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.mdc-tab-indicator--active .mdc-tab-indicator__content {
|
|
77
|
+
opacity: 1;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
._mat-animation-noopable, .mdc-tab-indicator--no-transition {
|
|
81
|
+
.mdc-tab-indicator__content {
|
|
82
|
+
transition: none;
|
|
83
|
+
}
|
|
27
84
|
}
|
|
28
85
|
|
|
29
86
|
.mat-mdc-tab-ripple {
|
|
@@ -37,14 +94,6 @@ $mat-tab-animation-duration: 500ms !default;
|
|
|
37
94
|
}
|
|
38
95
|
|
|
39
96
|
@mixin tab {
|
|
40
|
-
@include mdc-custom-properties.configure(
|
|
41
|
-
$emit-fallback-values: false,
|
|
42
|
-
$emit-fallback-vars: false
|
|
43
|
-
) {
|
|
44
|
-
@include mdc-tab-indicator-theme.theme-styles(tokens-mdc-tab-indicator.get-token-slots());
|
|
45
|
-
@include mdc-tab-theme.secondary-navigation-tab-theme-styles(tokens-mdc-tab.get-token-slots());
|
|
46
|
-
}
|
|
47
|
-
|
|
48
97
|
-webkit-tap-highlight-color: transparent;
|
|
49
98
|
-webkit-font-smoothing: antialiased;
|
|
50
99
|
-moz-osx-font-smoothing: grayscale;
|
|
@@ -53,6 +102,13 @@ $mat-tab-animation-duration: 500ms !default;
|
|
|
53
102
|
// Tabs might be `button` elements so we have to reset the user agent styling.
|
|
54
103
|
background: none;
|
|
55
104
|
|
|
105
|
+
@include token-utils.use-tokens(
|
|
106
|
+
tokens-mdc-secondary-navigation-tab.$prefix,
|
|
107
|
+
tokens-mdc-secondary-navigation-tab.get-token-slots()
|
|
108
|
+
) {
|
|
109
|
+
@include token-utils.create-token-slot(height, container-height);
|
|
110
|
+
}
|
|
111
|
+
|
|
56
112
|
&.mdc-tab {
|
|
57
113
|
// MDC's tabs stretch to fit the header by default, whereas stretching on our current ones
|
|
58
114
|
// is an opt-in behavior. Also technically we don't need to combine the two classes, but
|
|
@@ -60,6 +116,17 @@ $mat-tab-animation-duration: 500ms !default;
|
|
|
60
116
|
flex-grow: 0;
|
|
61
117
|
}
|
|
62
118
|
|
|
119
|
+
.mdc-tab-indicator__content--underline {
|
|
120
|
+
@include token-utils.use-tokens(
|
|
121
|
+
tokens-mdc-tab-indicator.$prefix,
|
|
122
|
+
tokens-mdc-tab-indicator.get-token-slots()
|
|
123
|
+
) {
|
|
124
|
+
@include token-utils.create-token-slot(border-color, active-indicator-color);
|
|
125
|
+
@include token-utils.create-token-slot(border-top-width, active-indicator-height);
|
|
126
|
+
@include token-utils.create-token-slot(border-radius, active-indicator-shape);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
63
130
|
@include token-utils.use-tokens(
|
|
64
131
|
tokens-mat-tab-header.$prefix,
|
|
65
132
|
tokens-mat-tab-header.get-token-slots()
|
|
@@ -185,18 +252,18 @@ $mat-tab-animation-duration: 500ms !default;
|
|
|
185
252
|
|
|
186
253
|
// We need to handle the hover and focus indication ourselves, because we don't use MDC's ripple.
|
|
187
254
|
&:hover .mdc-tab__ripple::before {
|
|
188
|
-
opacity:
|
|
255
|
+
opacity: 0.04;
|
|
189
256
|
}
|
|
190
257
|
|
|
191
258
|
&.cdk-program-focused,
|
|
192
259
|
&.cdk-keyboard-focused {
|
|
193
260
|
.mdc-tab__ripple::before {
|
|
194
|
-
opacity:
|
|
261
|
+
opacity: 0.12;
|
|
195
262
|
}
|
|
196
263
|
}
|
|
197
264
|
|
|
198
265
|
.mat-ripple-element {
|
|
199
|
-
opacity:
|
|
266
|
+
opacity: 0.12;
|
|
200
267
|
|
|
201
268
|
@include token-utils.use-tokens(
|
|
202
269
|
tokens-mat-tab-header.$prefix,
|
|
@@ -243,7 +310,7 @@ $mat-tab-animation-duration: 500ms !default;
|
|
|
243
310
|
}
|
|
244
311
|
|
|
245
312
|
.mat-ripple-element {
|
|
246
|
-
opacity:
|
|
313
|
+
opacity: 0.12;
|
|
247
314
|
|
|
248
315
|
@include token-utils.use-tokens(
|
|
249
316
|
tokens-mat-tab-header.$prefix,
|
|
@@ -309,15 +376,6 @@ $mat-tab-animation-duration: 500ms !default;
|
|
|
309
376
|
transition: none;
|
|
310
377
|
}
|
|
311
378
|
}
|
|
312
|
-
|
|
313
|
-
// The `span` is in the selector in order to increase the specificity, ensuring
|
|
314
|
-
// that it's always higher than the selector that declares the transition.
|
|
315
|
-
._mat-animation-noopable {
|
|
316
|
-
span.mdc-tab-indicator__content,
|
|
317
|
-
span.mdc-tab__text-label {
|
|
318
|
-
transition: none;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
379
|
}
|
|
322
380
|
|
|
323
381
|
// Structural styles for the element that wraps the paginated header items.
|
package/tabs/_tabs-theme.scss
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
@use '@material/tab-indicator/tab-indicator-theme' as mdc-tab-indicator-theme;
|
|
2
|
-
@use '@material/tab/tab-theme' as mdc-tab-theme;
|
|
3
1
|
@use '../core/style/sass-utils';
|
|
4
|
-
@use '../core/tokens/m2/mdc/tab' as tokens-mdc-tab;
|
|
2
|
+
@use '../core/tokens/m2/mdc/secondary-navigation-tab' as tokens-mdc-secondary-navigation-tab;
|
|
5
3
|
@use '../core/tokens/m2/mdc/tab-indicator' as tokens-mdc-tab-indicator;
|
|
6
4
|
@use '../core/tokens/m2/mat/tab-header' as tokens-mat-tab-header;
|
|
7
5
|
@use '../core/tokens/m2/mat/tab-header-with-background' as tokens-mat-tab-header-with-background;
|
|
@@ -20,14 +18,16 @@
|
|
|
20
18
|
}
|
|
21
19
|
@else {
|
|
22
20
|
@include sass-utils.current-selector-or-root() {
|
|
23
|
-
@include mdc-tab-indicator-theme.theme(tokens-mdc-tab-indicator.get-unthemable-tokens());
|
|
24
|
-
@include mdc-tab-theme.secondary-navigation-tab-theme(tokens-mdc-tab.get-unthemable-tokens());
|
|
25
21
|
@include token-utils.create-token-values(
|
|
26
|
-
|
|
22
|
+
tokens-mdc-secondary-navigation-tab.$prefix,
|
|
23
|
+
tokens-mdc-secondary-navigation-tab.get-unthemable-tokens());
|
|
27
24
|
@include token-utils.create-token-values(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
tokens-mdc-tab-indicator.$prefix, tokens-mdc-tab-indicator.get-unthemable-tokens());
|
|
26
|
+
@include token-utils.create-token-values(
|
|
27
|
+
tokens-mat-tab-header.$prefix, tokens-mat-tab-header.get-unthemable-tokens());
|
|
28
|
+
@include token-utils.create-token-values(
|
|
29
|
+
tokens-mat-tab-header-with-background.$prefix,
|
|
30
|
+
tokens-mat-tab-header-with-background.get-unthemable-tokens());
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -74,9 +74,12 @@
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
@mixin _palette-styles($theme, $palette-name) {
|
|
77
|
-
@include
|
|
78
|
-
tokens-mdc-
|
|
79
|
-
|
|
77
|
+
@include token-utils.create-token-values(
|
|
78
|
+
tokens-mdc-secondary-navigation-tab.$prefix,
|
|
79
|
+
tokens-mdc-secondary-navigation-tab.get-color-tokens($theme, $palette-name)
|
|
80
|
+
);
|
|
81
|
+
@include token-utils.create-token-values(
|
|
82
|
+
tokens-mdc-tab-indicator.$prefix,
|
|
80
83
|
tokens-mdc-tab-indicator.get-color-tokens($theme, $palette-name));
|
|
81
84
|
@include token-utils.create-token-values(tokens-mat-tab-header.$prefix,
|
|
82
85
|
tokens-mat-tab-header.get-color-tokens($theme, $palette-name));
|
|
@@ -90,10 +93,11 @@
|
|
|
90
93
|
}
|
|
91
94
|
@else {
|
|
92
95
|
.mat-mdc-tab-header {
|
|
93
|
-
@include
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
96
|
+
@include token-utils.create-token-values(
|
|
97
|
+
tokens-mdc-secondary-navigation-tab.$prefix,
|
|
98
|
+
tokens-mdc-secondary-navigation-tab.get-typography-tokens($theme));
|
|
99
|
+
@include token-utils.create-token-values(
|
|
100
|
+
tokens-mdc-tab-indicator.$prefix, tokens-mdc-tab-indicator.get-typography-tokens($theme));
|
|
97
101
|
@include token-utils.create-token-values(tokens-mat-tab-header.$prefix,
|
|
98
102
|
tokens-mat-tab-header.get-typography-tokens($theme));
|
|
99
103
|
@include token-utils.create-token-values(tokens-mat-tab-header-with-background.$prefix,
|
|
@@ -110,10 +114,11 @@
|
|
|
110
114
|
}
|
|
111
115
|
@else {
|
|
112
116
|
.mat-mdc-tab-header {
|
|
113
|
-
@include
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
+
@include token-utils.create-token-values(
|
|
118
|
+
tokens-mdc-secondary-navigation-tab.$prefix,
|
|
119
|
+
tokens-mdc-secondary-navigation-tab.get-density-tokens($theme));
|
|
120
|
+
@include token-utils.create-token-values(
|
|
121
|
+
tokens-mdc-tab-indicator.$prefix, tokens-mdc-tab-indicator.get-density-tokens($theme));
|
|
117
122
|
@include token-utils.create-token-values(tokens-mat-tab-header.$prefix,
|
|
118
123
|
tokens-mat-tab-header.get-density-tokens($theme));
|
|
119
124
|
@include token-utils.create-token-values(tokens-mat-tab-header-with-background.$prefix,
|
|
@@ -125,14 +130,14 @@
|
|
|
125
130
|
/// Outputs the CSS variable values for the given tokens.
|
|
126
131
|
/// @param {Map} $tokens The token values to emit.
|
|
127
132
|
@mixin overrides($tokens: ()) {
|
|
128
|
-
$tab-tokens: tokens-mdc-tab.get-token-slots();
|
|
133
|
+
$tab-tokens: tokens-mdc-secondary-navigation-tab.get-token-slots();
|
|
129
134
|
$tab-indicator-tokens: tokens-mdc-tab-indicator.get-token-slots();
|
|
130
135
|
$tab-header-tokens: tokens-mat-tab-header.get-token-slots();
|
|
131
136
|
$tab-header-with-background-tokens: tokens-mat-tab-header-with-background.get-token-slots();
|
|
132
137
|
|
|
133
138
|
@include token-utils.batch-create-token-values(
|
|
134
139
|
$tokens,
|
|
135
|
-
(prefix: tokens-mdc-tab.$prefix, tokens: $tab-tokens),
|
|
140
|
+
(prefix: tokens-mdc-secondary-navigation-tab.$prefix, tokens: $tab-tokens),
|
|
136
141
|
(prefix: tokens-mdc-tab-indicator.$prefix, tokens: $tab-indicator-tokens),
|
|
137
142
|
(prefix: tokens-mat-tab-header.$prefix, tokens: $tab-header-tokens),
|
|
138
143
|
(
|
|
@@ -176,8 +181,11 @@
|
|
|
176
181
|
$tokens, tokens-mat-tab-header.$prefix, $options...);
|
|
177
182
|
// Don't pass $options here, because the mdc-tab doesn't have color variants,
|
|
178
183
|
// only the mdc-tab-indicator and mat-tab-header do.
|
|
179
|
-
$mdc-tab-tokens:
|
|
180
|
-
|
|
181
|
-
@include
|
|
184
|
+
$mdc-secondary-navigation-tab-tokens:
|
|
185
|
+
token-utils.get-tokens-for($tokens, tokens-mdc-secondary-navigation-tab.$prefix);
|
|
186
|
+
@include token-utils.create-token-values(tokens-mdc-secondary-navigation-tab.$prefix,
|
|
187
|
+
$mdc-secondary-navigation-tab-tokens);
|
|
188
|
+
@include token-utils.create-token-values(tokens-mdc-tab-indicator.$prefix,
|
|
189
|
+
$mdc-tab-indicator-tokens);
|
|
182
190
|
@include token-utils.create-token-values(tokens-mat-tab-header.$prefix, $mat-tab-header-tokens);
|
|
183
191
|
}
|
package/tabs/index.d.ts
CHANGED
|
@@ -563,7 +563,13 @@ export declare class MatTabGroup implements AfterContentInit, AfterContentChecke
|
|
|
563
563
|
private _tabsSubscription;
|
|
564
564
|
/** Subscription to changes in the tab labels. */
|
|
565
565
|
private _tabLabelSubscription;
|
|
566
|
-
/**
|
|
566
|
+
/**
|
|
567
|
+
* Theme color of the tab group. This API is supported in M2 themes only, it
|
|
568
|
+
* has no effect in M3 themes.
|
|
569
|
+
*
|
|
570
|
+
* For information on applying color variants in M3, see
|
|
571
|
+
* https://material.angular.io/guide/theming#using-component-color-variants.
|
|
572
|
+
*/
|
|
567
573
|
color: ThemePalette;
|
|
568
574
|
/** Whether the ink bar should fit its width to the size of the tab label content. */
|
|
569
575
|
get fitInkBarToContent(): boolean;
|
|
@@ -606,7 +612,12 @@ export declare class MatTabGroup implements AfterContentInit, AfterContentChecke
|
|
|
606
612
|
*/
|
|
607
613
|
preserveContent: boolean;
|
|
608
614
|
/**
|
|
609
|
-
*
|
|
615
|
+
* Theme color of the background of the tab group. This API is supported in M2 themes only, it
|
|
616
|
+
* has no effect in M3 themes.
|
|
617
|
+
*
|
|
618
|
+
* For information on applying color variants in M3, see
|
|
619
|
+
* https://material.angular.io/guide/theming#using-component-color-variants.
|
|
620
|
+
*
|
|
610
621
|
* @deprecated The background color should be customized through Sass theming APIs.
|
|
611
622
|
* @breaking-change 20.0.0 Remove this input
|
|
612
623
|
*/
|
|
@@ -821,7 +832,13 @@ export declare class MatTabNav extends MatPaginatedTabHeader implements AfterCon
|
|
|
821
832
|
private _animationDuration;
|
|
822
833
|
/** Query list of all tab links of the tab navigation. */
|
|
823
834
|
_items: QueryList<MatTabLink>;
|
|
824
|
-
/**
|
|
835
|
+
/**
|
|
836
|
+
* Theme color of the background of the tab nav. This API is supported in M2 themes only, it
|
|
837
|
+
* has no effect in M3 themes.
|
|
838
|
+
*
|
|
839
|
+
* For information on applying color variants in M3, see
|
|
840
|
+
* https://material.angular.io/guide/theming#using-component-color-variants.
|
|
841
|
+
*/
|
|
825
842
|
get backgroundColor(): ThemePalette;
|
|
826
843
|
set backgroundColor(value: ThemePalette);
|
|
827
844
|
private _backgroundColor;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use '@material/tooltip/plain-tooltip-theme' as mdc-plain-tooltip-theme;
|
|
3
1
|
@use '../core/style/sass-utils';
|
|
4
2
|
@use '../core/theming/theming';
|
|
5
3
|
@use '../core/theming/inspection';
|
|
@@ -15,7 +13,10 @@
|
|
|
15
13
|
@else {
|
|
16
14
|
// Add default values for tokens not related to color, typography, or density.
|
|
17
15
|
@include sass-utils.current-selector-or-root() {
|
|
18
|
-
@include
|
|
16
|
+
@include token-utils.create-token-values(
|
|
17
|
+
tokens-mdc-plain-tooltip.$prefix,
|
|
18
|
+
tokens-mdc-plain-tooltip.get-unthemable-tokens()
|
|
19
|
+
);
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
}
|
|
@@ -25,11 +26,11 @@
|
|
|
25
26
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
|
|
26
27
|
}
|
|
27
28
|
@else {
|
|
28
|
-
$mdc-tooltip-color-tokens: tokens-mdc-plain-tooltip.get-color-tokens($theme);
|
|
29
|
-
|
|
30
|
-
// Add values for MDC tooltip tokens.
|
|
31
29
|
@include sass-utils.current-selector-or-root() {
|
|
32
|
-
@include
|
|
30
|
+
@include token-utils.create-token-values(
|
|
31
|
+
tokens-mdc-plain-tooltip.$prefix,
|
|
32
|
+
tokens-mdc-plain-tooltip.get-color-tokens($theme)
|
|
33
|
+
);
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
}
|
|
@@ -39,11 +40,11 @@
|
|
|
39
40
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
40
41
|
}
|
|
41
42
|
@else {
|
|
42
|
-
$mdc-tooltip-typography-tokens: tokens-mdc-plain-tooltip.get-typography-tokens($theme);
|
|
43
|
-
|
|
44
|
-
// Add values for MDC tooltip tokens.
|
|
45
43
|
@include sass-utils.current-selector-or-root() {
|
|
46
|
-
@include
|
|
44
|
+
@include token-utils.create-token-values(
|
|
45
|
+
tokens-mdc-plain-tooltip.$prefix,
|
|
46
|
+
tokens-mdc-plain-tooltip.get-typography-tokens($theme)
|
|
47
|
+
);
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
}
|
|
@@ -53,11 +54,11 @@
|
|
|
53
54
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
54
55
|
}
|
|
55
56
|
@else {
|
|
56
|
-
$mdc-tooltip-density-tokens: tokens-mdc-plain-tooltip.get-density-tokens($theme);
|
|
57
|
-
|
|
58
|
-
// Add values for MDC tooltip tokens.
|
|
59
57
|
@include sass-utils.current-selector-or-root() {
|
|
60
|
-
@include
|
|
58
|
+
@include token-utils.create-token-values(
|
|
59
|
+
tokens-mdc-plain-tooltip.$prefix,
|
|
60
|
+
tokens-mdc-plain-tooltip.get-density-tokens($theme)
|
|
61
|
+
);
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
64
|
}
|
|
@@ -93,6 +94,7 @@
|
|
|
93
94
|
@include validation.selector-defined(
|
|
94
95
|
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
|
|
95
96
|
@if $tokens != () {
|
|
96
|
-
|
|
97
|
+
$tokens: token-utils.get-tokens-for($tokens, tokens-mdc-plain-tooltip.$prefix);
|
|
98
|
+
@include token-utils.create-token-values(tokens-mdc-plain-tooltip.$prefix, $tokens);
|
|
97
99
|
}
|
|
98
100
|
}
|