Commit 307889e
fix(dialog): remove default aria-label from mat-dialog-close (#15654)
Currently we add an `aria-label` by default to close buttons that don't have text. This is unreliable, because text can come in at any time and it takes a lot of code to keep track of it. Furthermore, the default text is in English which means that sites in different languages will have to override it anyway. These changes remove the default `aria-label` and add some guidance to the docs on how to deal with labelling the close button.
Fixes #15542.1 parent c02b09c commit 307889e
File tree
4 files changed
+7
-45
lines changed- src/lib/dialog
- tools/public_api_guard/lib
4 files changed
+7
-45
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 45 | | |
52 | 46 | | |
53 | 47 | | |
| |||
62 | 56 | | |
63 | 57 | | |
64 | 58 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | 59 | | |
77 | 60 | | |
78 | 61 | | |
79 | | - | |
80 | | - | |
| 62 | + | |
81 | 63 | | |
82 | 64 | | |
83 | 65 | | |
84 | 66 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | 67 | | |
90 | 68 | | |
91 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
157 | 161 | | |
158 | 162 | | |
159 | 163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1143 | 1143 | | |
1144 | 1144 | | |
1145 | 1145 | | |
1146 | | - | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
1156 | 1146 | | |
1157 | 1147 | | |
1158 | 1148 | | |
1159 | 1149 | | |
1160 | 1150 | | |
1161 | | - | |
1162 | | - | |
1163 | | - | |
1164 | | - | |
1165 | | - | |
1166 | 1151 | | |
1167 | 1152 | | |
1168 | 1153 | | |
| |||
1463 | 1448 | | |
1464 | 1449 | | |
1465 | 1450 | | |
1466 | | - | |
1467 | | - | |
1468 | 1451 | | |
1469 | 1452 | | |
1470 | 1453 | | |
| |||
1483 | 1466 | | |
1484 | 1467 | | |
1485 | 1468 | | |
1486 | | - | |
1487 | | - | |
1488 | 1469 | | |
1489 | 1470 | | |
1490 | 1471 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| |||
0 commit comments