Skip to content

Commit f63c7cd

Browse files
committed
fixed-needs-triage-issue of code-#31341
1 parent 3bde4f7 commit f63c7cd

File tree

70 files changed

+467
-467
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+467
-467
lines changed

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@
840840
### button
841841
| Commit | Type | Description |
842842
| -- | -- | -- |
843-
| [421dd12859](https://github.com/angular/components/commit/421dd1285980633d79e3dcea249cad7344be14fb) | fix | fix color of mat-button links ([#876](https://github.com/angular/components/pull/876)) |
843+
| [421dd12859](https://github.com/angular/components/commit/421dd1285980633d79e3dcea249cad7344be14fb) | fix | fix color of matButton links ([#876](https://github.com/angular/components/pull/876)) |
844844
### categories
845845
| Commit | Type | Description |
846846
| -- | -- | -- |
@@ -1142,7 +1142,7 @@
11421142
* The `MapMarkerClusterer` class has been renamed to `DeprecatedMapMarkerClusterer`.
11431143
* The `map-marker-clusterer` selector has been changed to `deprecated-map-marker-clusterer`.
11441144
### multiple
1145-
- * In order for Material to be compatible with [recent changes in Sass](https://sass-lang.com/documentation/breaking-changes/mixed-decls/) and upcoming changes in the CSS standard, tokens are now emitted in-place, rather the being hoisted to the top of the selector. As a result, some token overrides might not apply anymore. This is relevant primarily for the cases like `@include mat.button-theme($theme); --mat-button-color: red;`. It can be resolved by wrapping the overrides with `& {}`, for example `@include mat.button-theme($theme); & { --mat-button-color: red; }`.
1145+
- * In order for Material to be compatible with [recent changes in Sass](https://sass-lang.com/documentation/breaking-changes/mixed-decls/) and upcoming changes in the CSS standard, tokens are now emitted in-place, rather the being hoisted to the top of the selector. As a result, some token overrides might not apply anymore. This is relevant primarily for the cases like `@include mat.button-theme($theme); --matButton-color: red;`. It can be resolved by wrapping the overrides with `& {}`, for example `@include mat.button-theme($theme); & { --matButton-color: red; }`.
11461146
- * `MatButton.ripple` is no longer available.
11471147
* `MatCheckbox.ripple` is no longer available.
11481148
* `MatChip.ripple` is no longer available.
@@ -3285,9 +3285,9 @@ Andy Chrzaszcz, Bobby Galli, Joey Perrott, Kristiyan Kostadinov, Miles Malerba,
32853285

32863286
- The following components have been re-implemented based on MDC:
32873287
- `mat-autocomplete`
3288-
- `mat-button`
3288+
- `matButton`
32893289
- `mat-fab`
3290-
- `mat-icon-button`
3290+
- `matIconButton`
32913291
- `mat-card`
32923292
- `mat-chip-list` (now split into the following three components: `mat-chip-set`, `mat-chip-listbox`, and `mat-chip-grid` to better represent the different interaction patterns)
32933293
- `mat-option`

CHANGELOG_ARCHIVE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ This contains changes before 12.0.0. See [CHANGELOG.md](https://github.com/angul
445445
| | |
446446
| ---------- | --------------------- |
447447
| bug fix | **autocomplete:** activate first enabled option with autoActiveFirstOption ([#21513](https://github.com/angular/components/issues/21513)) ([032c317d40e7d073755b769674effaf21f9e8944](https://github.com/angular/components/commit/032c317d40e7d073755b769674effaf21f9e8944)), closes [#21498](https://github.com/angular/components/issues/21498) |
448-
| bug fix | **button:** anchor mat-icon-button as matSuffix focus misaligned ([#21117](https://github.com/angular/components/issues/21117)) ([55253abd3f2cd17686702827a47f98e5132e54a5](https://github.com/angular/components/commit/55253abd3f2cd17686702827a47f98e5132e54a5)), closes [#20949](https://github.com/angular/components/issues/20949) [#20949](https://github.com/angular/components/issues/20949) |
448+
| bug fix | **button:** anchor matIconButton as matSuffix focus misaligned ([#21117](https://github.com/angular/components/issues/21117)) ([55253abd3f2cd17686702827a47f98e5132e54a5](https://github.com/angular/components/commit/55253abd3f2cd17686702827a47f98e5132e54a5)), closes [#20949](https://github.com/angular/components/issues/20949) [#20949](https://github.com/angular/components/issues/20949) |
449449
| bug fix | **menu:** focus indication rendering partially in high contrast mode ([#21527](https://github.com/angular/components/issues/21527)) ([e180655270b9639965af1e8a9d963a9aec1f7f59](https://github.com/angular/components/commit/e180655270b9639965af1e8a9d963a9aec1f7f59)), closes [#21524](https://github.com/angular/components/issues/21524) |
450450
| bug fix | **radio:** remove tabindex from host node ([#21280](https://github.com/angular/components/issues/21280)) ([d17883c5d49cb53bf40c9ff0894b16008a50e73c](https://github.com/angular/components/commit/d17883c5d49cb53bf40c9ff0894b16008a50e73c)), closes [#21046](https://github.com/angular/components/issues/21046) [#21266](https://github.com/angular/components/issues/21266) |
451451
| bug fix | **snack-bar:** fix Firefox/JAWS not reading out snackbar message ([#21552](https://github.com/angular/components/issues/21552)) ([f76369ab71a6dd807705ce42c104ecc48a97aef3](https://github.com/angular/components/commit/f76369ab71a6dd807705ce42c104ecc48a97aef3)) |
@@ -1525,7 +1525,7 @@ the new Sass module system, which offers a number of benefits over the existing
15251525
| bug fix | **drag-drop:** defer resolving scrollable parents until first drag ([#18918](https://github.com/angular/components/issues/18918)) ([ca263c3](https://github.com/angular/components/commit/ca263c3)), closes [#18737](https://github.com/angular/components/issues/18737) |
15261526
| bug fix | **drag-drop:** handle custom preview/placeholder with multiple root nodes ([#18829](https://github.com/angular/components/issues/18829)) ([92aed70](https://github.com/angular/components/commit/92aed70)) |
15271527
| bug fix | **expansion:** add strong focus indication ([#18552](https://github.com/angular/components/issues/18552)) ([6feff45](https://github.com/angular/components/commit/6feff45)) |
1528-
| bug fix | **mat-button-toggle:** mat-button-toggle element should not h… ([#18746](https://github.com/angular/components/issues/18746)) ([709ac63](https://github.com/angular/components/commit/709ac63)) |
1528+
| bug fix | **matButton-toggle:** matButton-toggle element should not h… ([#18746](https://github.com/angular/components/issues/18746)) ([709ac63](https://github.com/angular/components/commit/709ac63)) |
15291529
| bug fix | **popover-edit:** hover content not showing up if content changes after init ([#18937](https://github.com/angular/components/issues/18937)) ([d7ff7cb](https://github.com/angular/components/commit/d7ff7cb)), closes [#18934](https://github.com/angular/components/issues/18934) |
15301530
| bug fix | **popover-edit:** unable to close focus content using the keyboard ([#18945](https://github.com/angular/components/issues/18945)) ([e7a197a](https://github.com/angular/components/commit/e7a197a)) |
15311531
| bug fix | **slider:** not stopping drag when released outside of viewport ([#18905](https://github.com/angular/components/issues/18905)) ([ca3c68f](https://github.com/angular/components/commit/ca3c68f)), closes [#18888](https://github.com/angular/components/issues/18888) |
@@ -2302,7 +2302,7 @@ Use the individual secondary entry-points, such as `@angular/material/button`.
23022302
| | |
23032303
| ---------- | --------------------- |
23042304
| bug fix | **button:** ripple color should match state color ([#17066](https://github.com/angular/components/issues/17066)) ([7e98a7e](https://github.com/angular/components/commit/7e98a7e)) |
2305-
| bug fix | **button:** ripples were using mat-button styles ([#17069](https://github.com/angular/components/issues/17069)) ([6d48c4f](https://github.com/angular/components/commit/6d48c4f)) |
2305+
| bug fix | **button:** ripples were using matButton styles ([#17069](https://github.com/angular/components/issues/17069)) ([6d48c4f](https://github.com/angular/components/commit/6d48c4f)) |
23062306
| bug fix | **mdc-tabs:** error during server-side rendering ([#17169](https://github.com/angular/components/issues/17169)) ([57fa880](https://github.com/angular/components/commit/57fa880)) |
23072307
| feature | **drawer:** add harness for mat-drawer ([#17010](https://github.com/angular/components/issues/17010)) ([7ad30eb](https://github.com/angular/components/commit/7ad30eb)), closes [#16695](https://github.com/angular/components/issues/16695) |
23082308
| feature | **form-field:** add test harness ([#17138](https://github.com/angular/components/issues/17138)) ([eebf589](https://github.com/angular/components/commit/eebf589)) |
@@ -6898,7 +6898,7 @@ See ([#2790](https://github.com/angular/material2/issues/2790)) for the details
68986898
* **autocomplete:** support rtl ([#2648](https://github.com/angular/material2/issues/2648)) ([4f59ad0](https://github.com/angular/material2/commit/4f59ad0))
68996899
* **autocomplete:** up arrow should set last item active ([#2776](https://github.com/angular/material2/issues/2776)) ([fd5e4d9](https://github.com/angular/material2/commit/fd5e4d9))
69006900
* **autosize:** export md-autosize directive ([#2432](https://github.com/angular/material2/issues/2432)) ([f2d73da](https://github.com/angular/material2/commit/f2d73da)), closes [#2419](https://github.com/angular/material2/issues/2419)
6901-
* **button:** add default color for mat-raised-button ([#3052](https://github.com/angular/material2/issues/3052)) ([6fe1d9a](https://github.com/angular/material2/commit/6fe1d9a))
6901+
* **button:** add default color for matRaisedButton ([#3052](https://github.com/angular/material2/issues/3052)) ([6fe1d9a](https://github.com/angular/material2/commit/6fe1d9a))
69026902
* **button:** only flat button and icon buttons should inherit the color ([#2561](https://github.com/angular/material2/issues/2561)) ([ac363df](https://github.com/angular/material2/commit/ac363df)), closes [#2539](https://github.com/angular/material2/issues/2539)
69036903
* **button:** raised buttons in dark theme ([#3070](https://github.com/angular/material2/issues/3070)) ([87ab712](https://github.com/angular/material2/commit/87ab712))
69046904
* **button:** reuse _getHostElement() to avoid redundant elementRef.nativeElement calls ([#2625](https://github.com/angular/material2/issues/2625)) ([c7d1c17](https://github.com/angular/material2/commit/c7d1c17))

CODING_STANDARDS.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ In HTML code, use `<!-- ... -->` comments, which will be stripped when packaging
4949

5050
For example, rather than doing this:
5151
```html
52-
<mat-button>Basic button</mat-button>
53-
<mat-button class="mat-fab">FAB</mat-button>
54-
<mat-button class="mat-icon-button">pony</mat-button>
52+
<matButton>Basic button</matButton>
53+
<matButton class="mat-fab">FAB</matButton>
54+
<matButton class="matIconButton">pony</matButton>
5555
```
5656

5757
do this:
5858
```html
59-
<mat-button>Basic button</mat-button>
59+
<matButton>Basic button</matButton>
6060
<mat-fab>FAB</mat-fab>
61-
<mat-icon-button>pony</mat-icon-button>
61+
<matIconButton>pony</matIconButton>
6262
```
6363

6464
#### Prefer small, focused modules

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ fix(material/button): unable to disable button through binding
197197
198198
Fixes a bug in the Angular Material `button` component where buttons
199199
cannot be disabled through a binding. This is because the `disabled`
200-
input did not set the `.mat-button-disabled` class on the host element.
200+
input did not set the `.matButton-disabled` class on the host element.
201201
202202
Fixes #1234
203203
```
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<mat-button-toggle-group class="scene-button-toggle" aria-label="Font Style">
2-
<mat-button-toggle value="bold">
1+
<matButton-toggle-group class="scene-button-toggle" aria-label="Font Style">
2+
<matButton-toggle value="bold">
33
<mat-icon>format_align_left</mat-icon>
4-
</mat-button-toggle>
5-
<mat-button-toggle value="italic">
4+
</matButton-toggle>
5+
<matButton-toggle value="italic">
66
<mat-icon>format_align_justify</mat-icon>
7-
</mat-button-toggle>
8-
<mat-button-toggle value="underline" [checked]="true">
7+
</matButton-toggle>
8+
<matButton-toggle value="underline" [checked]="true">
99
<mat-icon>format_align_right</mat-icon>
10-
</mat-button-toggle>
11-
</mat-button-toggle-group>
10+
</matButton-toggle>
11+
</matButton-toggle-group>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<div class="scene-buttons">
2-
<button mat-flat-button color="primary">Button</button>
3-
<button mat-icon-button><mat-icon>create</mat-icon></button>
4-
<button mat-raised-button>Button</button>
2+
<button matFlatButton color="primary">Button</button>
3+
<button matIconButton><mat-icon>create</mat-icon></button>
4+
<button matRaisedButton>Button</button>
55
</div>
66

77
<div class="scene-buttons">
8-
<button mat-raised-button>Button</button>
8+
<button matRaisedButton>Button</button>
99
<button mat-fab><mat-icon>add</mat-icon></button>
10-
<button mat-stroked-button>Button</button>
10+
<button matStrokedButton>Button</button>
1111
</div>

docs/scenes/src/app/scenes/dialog/dialog-scene.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ export class DialogScene {
3232
template: `
3333
<div mat-dialog-content>Discard draft?</div>
3434
<div mat-dialog-actions>
35-
<button mat-button mat-dialog-close>Cancel</button>
36-
<button mat-button mat-dialog-close>Discard</button>
35+
<button matButton mat-dialog-close>Cancel</button>
36+
<button matButton mat-dialog-close>Discard</button>
3737
</div>`,
3838
imports: [MatDialogModule, MatButtonModule],
3939
})

docs/scenes/src/app/scenes/menu/menu-scene.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<button mat-icon-button class="scene-menu-button" #menuTrigger="matMenuTrigger" [matMenuTriggerFor]="menu" aria-label="Example icon-button with a menu">
1+
<button matIconButton class="scene-menu-button" #menuTrigger="matMenuTrigger" [matMenuTriggerFor]="menu" aria-label="Example icon-button with a menu">
22
<mat-icon>more_vert</mat-icon>
33
</button>
44
<mat-menu #menu="matMenu">

docs/scenes/src/app/scenes/ripples/ripples-scene.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
matRipple
33
[matRippleDisabled]="true">
44
</div>
5-
<button mat-raised-button color="primary" class="scene-ripples-button" #button
5+
<button matRaisedButton color="primary" class="scene-ripples-button" #button
66
matRipple
77
[matRippleDisabled]="true">RIPPLES</button>

docs/scenes/src/app/scenes/ripples/ripples-scene.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ button {
77
overflow: hidden;
88
}
99

10-
.mat-button-wrapper {
10+
.matButton-wrapper {
1111
font-size: 18px;
1212
}
1313

0 commit comments

Comments
 (0)