File tree Expand file tree Collapse file tree 6 files changed +27
-0
lines changed Expand file tree Collapse file tree 6 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -228,3 +228,6 @@ application root module.
228
228
})
229
229
export class MyApp {}
230
230
```
231
+ ### Accessibility
232
+ The input box for datepicker should have a placeholder or be given a meaningful label via
233
+ ` aria-label ` or ` aria-labelledby ` .
Original file line number Diff line number Diff line change @@ -98,3 +98,7 @@ that should trigger the sub-menu:
98
98
- <kbd >RIGHT_ARROW</kbd >: Opens the menu item's sub-menu
99
99
- <kbd >LEFT_ARROW</kbd >: Closes the current menu, if it is a sub-menu.
100
100
- <kbd >ENTER</kbd >: Activates the focused menu item
101
+
102
+ ### Accessibility
103
+ Menu triggers or menu items without text or labels should be given a meaningful label via
104
+ ` aria-label ` or ` aria-labelledby ` .
Original file line number Diff line number Diff line change @@ -22,3 +22,11 @@ and `ReactiveFormsModule`.
22
22
### Theming
23
23
The color of a ` <md-slide-toggle> ` can be changed by using the ` color ` property. By default,
24
24
slide-toggles use the theme's accent color. This can be changed to ` 'primary' ` or ` 'warn' ` .
25
+
26
+ ### Accessibility
27
+ The ` <md-slide-toggle> ` uses an internal ` <input type="checkbox"> ` to provide an accessible
28
+ experience. This internal checkbox receives focus and is automatically labelled by the text content
29
+ of the ` <md-slide-toggle> ` element.
30
+
31
+ Slide toggles without text or labels should be given a meaningful label via ` aria-label ` or
32
+ ` aria-labelledby ` .
Original file line number Diff line number Diff line change @@ -85,3 +85,7 @@ The slider has the following keyboard bindings:
85
85
| Page down | Decrement the slider value by 10 steps. |
86
86
| End | Set the value to the maximum possible. |
87
87
| Home | Set the value to the minimum possible. |
88
+
89
+ ### Accessibility
90
+ Sliders without text or labels should be given a meaningful label via ` aria-label ` or
91
+ ` aria-labelledby ` .
Original file line number Diff line number Diff line change @@ -72,3 +72,7 @@ export class MessageArchivedComponent {
72
72
constructor (@Inject (MD_SNACK_BAR_DATA ) public data : any ) { }
73
73
}
74
74
```
75
+ ### Accessibility
76
+ A Snackbar automatically goes away after a short time, so you can't count on the user seeing the
77
+ message or having a chance to press the button. For this reason, you should consider offering an
78
+ alternate way to perform any Snackbar action.
Original file line number Diff line number Diff line change @@ -49,3 +49,7 @@ easily accomplished with `display: flex`:
49
49
The color of a ` <md-toolbar> ` can be changed by using the ` color ` property. By default, toolbars
50
50
use a neutral background color based on the current theme (light or dark). This can be changed to
51
51
` 'primary' ` , ` 'accent' ` , or ` 'warn' ` .
52
+
53
+ ### Accessibility
54
+ Toolbar items without text or labels should be given a meaningful label via ` aria-label ` or
55
+ ` aria-labelledby ` .
You can’t perform that action at this time.
0 commit comments