Skip to content

Commit e2258de

Browse files
authored
Revert "refactor(material/datepicker): switch to tokens API (#27503)" (#27517)
This reverts commit 76a7fbd.
1 parent 6b34f72 commit e2258de

File tree

10 files changed

+210
-463
lines changed

10 files changed

+210
-463
lines changed

src/dev-app/datepicker/datepicker-demo.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ <h2>Range picker</h2>
215215
<mat-date-range-picker
216216
[touchUi]="touch"
217217
[disabled]="datepickerDisabled"
218-
[color]="color"
219218
#range1Picker>
220219
<mat-date-range-picker-actions *ngIf="showActions">
221220
<button mat-button matDateRangePickerCancel>Cancel</button>

src/material/core/theming/tests/theming-api.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,15 @@ describe('theming api', () => {
9898
)
9999
));
100100
101-
// Updates the "icon" foreground color to hotpink.
101+
// Updates the "icon" foreground color to "canary".
102102
$color: map-get($theme, color);
103103
$theme: map-merge($color,
104-
(foreground: map-merge(map-get($color, foreground), (icon: hotpink))));
104+
(foreground: map-merge(map-get($color, foreground), (icon: "canary"))));
105105
106106
@include angular-material-theme($theme);
107107
`);
108108

109-
expect(result).toContain(': hotpink');
109+
expect(result).toContain(': "canary"');
110110
});
111111

112112
it('should warn if default density styles are duplicated', () => {

src/material/core/tokens/m2/mat/_datepicker.scss

Lines changed: 0 additions & 184 deletions
This file was deleted.

src/material/datepicker/BUILD.bazel

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,12 @@ sass_library(
5757
sass_binary(
5858
name = "datepicker_content_scss",
5959
src = "datepicker-content.scss",
60-
deps = ["//src/material/core:core_scss_lib"],
6160
)
6261

6362
sass_binary(
6463
name = "datepicker_toggle_scss",
6564
src = "datepicker-toggle.scss",
66-
deps = [
67-
"//src/cdk:sass_lib",
68-
"//src/material/core:core_scss_lib",
69-
],
65+
deps = ["//src/cdk:sass_lib"],
7066
)
7167

7268
sass_binary(

0 commit comments

Comments
 (0)