Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit eb4ba2b

Browse files
Googlernshahan
authored andcommitted
Add 'dropdownButtonAriaLabel' to the Material Date Range Picker Component.
PiperOrigin-RevId: 243146607
1 parent dd52020 commit eb4ba2b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

angular_components/lib/material_datepicker/material_date_range_picker.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@ class MaterialDateRangePickerComponent
244244
@Input()
245245
String applyButtonLabel;
246246

247+
/// The ARIA label for the dropdown button.
248+
@Input()
249+
String dropdownButtonAriaLabel;
250+
247251
/// Whether changing the selected date range should be disabled.
248252
@Input()
249253
set disabled(bool value) {

angular_components/lib/material_datepicker/material_date_range_picker.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<dropdown-button class="menu-lookalike primary-range"
2222
[tabbable]="false"
2323
[disabled]="disabled"
24+
[buttonAriaLabel]="dropdownButtonAriaLabel"
2425
[buttonText]="formattedRange"
2526
[error]="error">
2627
</dropdown-button>

0 commit comments

Comments
 (0)