File tree Expand file tree Collapse file tree 7 files changed +15
-7
lines changed Expand file tree Collapse file tree 7 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -40,5 +40,5 @@ use a neutral background color based on the current theme (light or dark). This
4040` 'primary' ` , ` 'accent' ` , or ` 'warn' ` .
4141
4242### Accessibility
43- Chips has ` role="option" ` while chip list has ` role="listbox" ` . The chip input should have a
43+ Chips have role="option", while the chip list has ` role="listbox" ` . The chip input should have a
4444placeholder or be given a meaningful label via ` aria-label ` or ` aria-labelledby ` .
Original file line number Diff line number Diff line change @@ -128,5 +128,8 @@ export class AppModule() {}
128128```
129129
130130### Accessibility
131- The dialog has `role="dialog". The dialog will focus on the first tabbable element when opened,
131+ The dialog has ` role="dialog", and dialog role can be overwritten to ` alertdialog` in the
132+ appropriate context.
133+
134+ The dialog will focus on the first tabbable element when opened,
132135and restore focus to the element that was focused before the dialog opened when closed.
Original file line number Diff line number Diff line change @@ -103,5 +103,5 @@ panel can be expanded at a given time:
103103The expansion panel header has ` role="button" ` . The expansion panel header has attribute
104104` aria-controls ` with the expansion panel's id as value.
105105
106- Users can use keyboard to activate the expansion panel header to switch between expanded state
106+ Users can use the keyboard to activate the expansion panel header to switch between expanded state
107107and collapsed state.
Original file line number Diff line number Diff line change @@ -153,3 +153,10 @@ Here are the available global options:
153153
154154### Accessibility
155155The ` mdInput ` directive works with native ` <input> ` to provide an accessible experience.
156+
157+ If a placeholder attributed is added to the input, or a ` md-placeholder ` element is added
158+ in the form field, the placeholder text will automatically be used as the label for the input.
159+ If there's no placeholder specified, ` aria-label ` , ` aria-labelledby ` or ` <label for=...> ` should be
160+ added.
161+
162+ Any ` md-error ` and ` md-hint ` are automatically added to the input's ` aria-describedby ` .
Original file line number Diff line number Diff line change @@ -98,5 +98,3 @@ The select component without text or label should be given a meaningful label vi
9898` aria-label ` or ` aria-labelledby ` .
9999
100100The select component has ` role="listbox" ` and options inside select has ` role="option" ` .
101- Autocomplete trigger sets ` aria-owns ` to the autocomplete's id, and sets ` aria-activedescendant ` to
102- the active option's id.
Original file line number Diff line number Diff line change @@ -35,4 +35,4 @@ by default it will use the id of the column.
3535<!-- example(table-sorting) -->
3636
3737### Accessibility
38- The ` aria-label ` for sort button can be set in ` MdSortHeaderIntl ` .
38+ The ` aria-label ` for the sort button can be set in ` MdSortHeaderIntl ` .
Original file line number Diff line number Diff line change @@ -81,5 +81,5 @@ the `active` property to determine which tab is currently active. The correspond
8181` <router-outlet> ` can be placed anywhere in the view.
8282
8383### Accessibility
84- ` MdTanNav ` s without text or labels should be given a meaningful label via ` aria-label ` or
84+ ` MdTabNav ` s without text or labels should be given a meaningful label via ` aria-label ` or
8585` aria-labelledby ` .
You can’t perform that action at this time.
0 commit comments