File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 5
5
[checked] ="checked "
6
6
[disabled] ="disabled || null "
7
7
[name] ="name "
8
+ [attr.aria-label] ="ariaLabel "
9
+ [attr.aria-labelledby] ="ariaLabelledby "
8
10
(change) ="_onInputChange($event) "
9
11
(click) ="_onInputClick($event) ">
10
12
Original file line number Diff line number Diff line change @@ -277,6 +277,17 @@ export class MdButtonToggleGroupMultiple extends _MdButtonToggleGroupMixinBase
277
277
}
278
278
} )
279
279
export class MdButtonToggle implements OnInit , OnDestroy {
280
+ /**
281
+ * Attached to the aria-label attribute of the host element. In most cases, arial-labelledby will
282
+ * take precedence so this may be omitted.
283
+ */
284
+ @Input ( 'aria-label' ) ariaLabel : string = '' ;
285
+
286
+ /**
287
+ * Users can specify the `aria-labelledby` attribute which will be forwarded to the input element
288
+ */
289
+ @Input ( 'aria-labelledby' ) ariaLabelledby : string | null = null ;
290
+
280
291
/** Whether or not this button toggle is checked. */
281
292
private _checked : boolean = false ;
282
293
You can’t perform that action at this time.
0 commit comments