Skip to content

Commit 5eae231

Browse files
authored
Merge branch 'angular:main' into slide-toggle
2 parents 5cdbbee + d4e104a commit 5eae231

14 files changed

Lines changed: 75 additions & 101 deletions

File tree

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,37 @@
1+
<a name="21.1.0-next.2"></a>
2+
# 21.1.0-next.2 "plastic-monkey" (2025-12-10)
3+
### cdk
4+
| Commit | Type | Description |
5+
| -- | -- | -- |
6+
| [439d1f92a8](https://github.com/angular/components/commit/439d1f92a81246dc77be1e19c0296a1740511fc6) | feat | **table:** add virtual scrolling support |
7+
| [67f213a351](https://github.com/angular/components/commit/67f213a3510b09e0a3fec3054052f49d0c02be00) | fix | **a11y:** add `@angular/platform-browser` to peer dependencies ([#32471](https://github.com/angular/components/pull/32471)) |
8+
| [789274f423](https://github.com/angular/components/commit/789274f423581235e97948c708d0bb2d42e60b11) | fix | **menu:** allow user to pass selector for transform origin ([#32462](https://github.com/angular/components/pull/32462)) |
9+
| [52720a3688](https://github.com/angular/components/commit/52720a368855b1fd2baaab8263341060a77a7173) | fix | **overlay:** error when attempting to attach disposed overlay ([#32489](https://github.com/angular/components/pull/32489)) |
10+
### material
11+
| Commit | Type | Description |
12+
| -- | -- | -- |
13+
| [ed7e1dab2f](https://github.com/angular/components/commit/ed7e1dab2f3bc4acc849169bd65d5c44c219242f) | fix | **core:** default secondary color for focus indicator ([#32491](https://github.com/angular/components/pull/32491)) |
14+
| [29a8a2fddc](https://github.com/angular/components/commit/29a8a2fddcc67ac82fbc9c6d744959945f5ae139) | fix | **datepicker:** value reset when invalid value is entered using signal forms ([#32485](https://github.com/angular/components/pull/32485)) |
15+
| [1fab386620](https://github.com/angular/components/commit/1fab386620dd0541d928c3272c403d52f1192d41) | fix | **table:** fixed layout not working ([#32494](https://github.com/angular/components/pull/32494)) |
16+
17+
<!-- CHANGELOG SPLIT MARKER -->
18+
19+
<a name="21.0.3"></a>
20+
# 21.0.3 "plastic-moose" (2025-12-10)
21+
### cdk
22+
| Commit | Type | Description |
23+
| -- | -- | -- |
24+
| [fd2213c5e7](https://github.com/angular/components/commit/fd2213c5e742697da4d7f68d8e4040f6eaeadfff) | fix | **menu:** allow user to pass selector for transform origin ([#32462](https://github.com/angular/components/pull/32462)) |
25+
| [09ec44973f](https://github.com/angular/components/commit/09ec44973f8993b2a131aff30a0d68a45067f1ea) | fix | **overlay:** error when attempting to attach disposed overlay ([#32489](https://github.com/angular/components/pull/32489)) |
26+
### material
27+
| Commit | Type | Description |
28+
| -- | -- | -- |
29+
| [151322f3b3](https://github.com/angular/components/commit/151322f3b3dd96e66f923dc4b0b4f81226ee44e6) | fix | **core:** default secondary color for focus indicator ([#32491](https://github.com/angular/components/pull/32491)) |
30+
| [b1287cf9a6](https://github.com/angular/components/commit/b1287cf9a64a0663ac6a5ce3222a695cd502b8bc) | fix | **datepicker:** value reset when invalid value is entered using signal forms ([#32485](https://github.com/angular/components/pull/32485)) |
31+
| [f4af3981b6](https://github.com/angular/components/commit/f4af3981b64bfca7cfe4ea1413c40446731ff3fe) | fix | **table:** fixed layout not working ([#32494](https://github.com/angular/components/pull/32494)) |
32+
33+
<!-- CHANGELOG SPLIT MARKER -->
34+
135
<a name="21.1.0-next.1"></a>
236
# 21.1.0-next.1 "babingtonite-blinds" (2025-12-03)
337
### aria

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"ci-docs-monitor-test": "node --no-warnings=ExperimentalWarning --loader ts-node/esm/transpile-only scripts/docs-deploy/monitoring/ci-test.mts",
5454
"prepare": "husky"
5555
},
56-
"version": "21.1.0-next.1",
56+
"version": "21.1.0-next.2",
5757
"dependencies": {
5858
"@angular-devkit/core": "catalog:",
5959
"@angular-devkit/schematics": "catalog:",

src/material/button/_button-base.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
}
5757
}
5858

59-
&:focus > .mat-focus-indicator::before {
59+
&:focus-visible > .mat-focus-indicator::before {
6060
content: '';
6161

6262
@if ($focus-indicator-inherits-shape) {

src/material/checkbox/checkbox.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,6 @@ $fallbacks: m3-checkbox.get-tokens();
105105

106106
// For checkboxes render the focus indicator when we know
107107
// the hidden input is focused (slightly different for each control).
108-
.mdc-checkbox__native-control:focus ~ .mat-focus-indicator::before {
108+
.mdc-checkbox__native-control:focus-visible ~ .mat-focus-indicator::before {
109109
content: '';
110110
}

src/material/chips/chip.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ $fallbacks: m3-chip.get-tokens();
737737

738738
// The chip has multiple focus targets so we have to put the indicator on
739739
// a separate element, rather than on the focusable element itself.
740-
.mat-mdc-chip-action:focus .mat-focus-indicator::before {
740+
.mat-mdc-chip-action:focus-visible .mat-focus-indicator::before {
741741
content: '';
742742
}
743743

src/material/core/focus-indicators/_private.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $default-border-radius: 4px;
2828

2929
// By default, render the focus indicator when the focus indicator host element takes focus.
3030
// Defining a pseudo element's content will cause it to render.
31-
&:focus::before {
31+
&:focus-visible::before {
3232
content: '';
3333
}
3434
}

src/material/datepicker/calendar.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ $fallbacks: m3-datepicker.get-tokens();
132132

133133
// For calendar cells, render the focus indicator when the parent cell is
134134
// focused.
135-
.mat-calendar-body-cell:focus .mat-focus-indicator::before {
135+
.mat-calendar-body-cell:focus-visible .mat-focus-indicator::before {
136136
content: '';
137137
}
138138

src/material/form-field/_mdc-text-field-structure.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,8 @@ $fallbacks: m3-form-field.get-tokens();
369369
box-sizing: border-box;
370370
height: 100%;
371371
pointer-events: none;
372+
// Reset border coming from something like Tailwind (see #32511).
373+
border: none;
372374
border-top: 1px solid;
373375
border-bottom: 1px solid;
374376

src/material/list/list.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ a.mdc-list-item--activated {
131131

132132
// For list items, render the focus indicator when the parent
133133
// listem item is focused.
134-
&:focus > .mat-focus-indicator::before {
134+
&:focus-visible > .mat-focus-indicator::before {
135135
content: '';
136136
}
137137
}

src/material/schematics/ng-add/index.spec.ts

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {SchematicTestRunner} from '@angular-devkit/schematics/testing';
44
import {
55
getProjectFromWorkspace,
66
getProjectIndexFiles,
7-
getProjectStyleFile,
87
getProjectTargetOptions,
98
} from '@angular/cdk/schematics';
109
import {createTestApp, createTestLibrary, getFileContent} from '../../../cdk/schematics/testing';
@@ -87,7 +86,7 @@ describe('ng-add schematic', () => {
8786
const workspace = await readWorkspace(tree);
8887
const project = getProjectFromWorkspace(workspace, baseOptions.project);
8988

90-
expectProjectStyleFile(project, 'projects/material/src/custom-theme.scss');
89+
expectProjectStyleFile(project, 'projects/material/src/material-theme.scss');
9190
});
9291

9392
it('should support adding a custom theme', async () => {
@@ -121,12 +120,12 @@ describe('ng-add schematic', () => {
121120
);
122121
const workspace = await readWorkspace(tree);
123122
const project = getProjectFromWorkspace(workspace, baseOptions.project);
124-
const expectedStylesPath = normalize(`/${project.root}/src/custom-theme.scss`);
123+
const expectedStylesPath = normalize(`/${project.root}/src/material-theme.scss`);
125124

126125
expect(tree.files)
127126
.withContext('Expected a custom theme file to be created')
128127
.toContain(expectedStylesPath);
129-
expectProjectStyleFile(project, 'projects/material/src/custom-theme.scss');
128+
expectProjectStyleFile(project, 'projects/material/src/material-theme.scss');
130129
});
131130

132131
it('should add font links', async () => {
@@ -160,20 +159,6 @@ describe('ng-add schematic', () => {
160159
});
161160
});
162161

163-
it('should add material app styles', async () => {
164-
const tree = await runner.runSchematic('ng-add-setup-project', baseOptions, appTree);
165-
const workspace = await readWorkspace(tree);
166-
const project = getProjectFromWorkspace(workspace, baseOptions.project);
167-
168-
const defaultStylesPath = getProjectStyleFile(project)!;
169-
const htmlContent = tree.read(defaultStylesPath)!.toString();
170-
171-
expect(htmlContent).toContain('html, body { height: 100%; }');
172-
expect(htmlContent).toContain(
173-
'body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; }',
174-
);
175-
});
176-
177162
describe('custom project builders', () => {
178163
/** Overwrites a target builder for the workspace in the given tree */
179164
function overwriteTargetBuilder(tree: Tree, targetName: 'build' | 'test', newBuilder: string) {
@@ -223,15 +208,15 @@ describe('ng-add schematic', () => {
223208

224209
describe('theme files', () => {
225210
it('should not overwrite existing custom theme files', async () => {
226-
appTree.create('/projects/material/custom-theme.scss', 'custom-theme');
211+
appTree.create('/projects/material/material-theme.scss', 'material-theme');
227212
const tree = await runner.runSchematic(
228213
'ng-add-setup-project',
229214
{...baseOptions, theme: 'azure-blue'},
230215
appTree,
231216
);
232-
expect(tree.readContent('/projects/material/custom-theme.scss'))
217+
expect(tree.readContent('/projects/material/material-theme.scss'))
233218
.withContext('Expected the old custom theme content to be unchanged.')
234-
.toBe('custom-theme');
219+
.toBe('material-theme');
235220
});
236221
});
237222

@@ -277,7 +262,7 @@ describe('ng-add schematic', () => {
277262
const workspace = await readWorkspace(tree);
278263
const project = getProjectFromWorkspace(workspace, baseOptions.project);
279264

280-
expectProjectStyleFile(project, 'projects/material/src/custom-theme.scss');
265+
expectProjectStyleFile(project, 'projects/material/src/material-theme.scss');
281266
});
282267
});
283268

@@ -323,7 +308,7 @@ describe('ng-add schematic', () => {
323308
const workspace = await readWorkspace(tree);
324309
const project = getProjectFromWorkspace(workspace, baseOptions.project);
325310

326-
expectProjectStyleFile(project, 'projects/material/src/custom-theme.scss');
311+
expectProjectStyleFile(project, 'projects/material/src/material-theme.scss');
327312
});
328313
});
329314

@@ -360,7 +345,7 @@ describe('ng-add schematic', () => {
360345
const workspace = await readWorkspace(tree);
361346
const project = getProjectFromWorkspace(workspace, baseOptions.project);
362347

363-
expectProjectStyleFile(project, 'projects/material/src/custom-theme.scss');
348+
expectProjectStyleFile(project, 'projects/material/src/material-theme.scss');
364349
});
365350
});
366351
});

0 commit comments

Comments
 (0)