Unverified Commit 046dde3d authored by Darren Austin's avatar Darren Austin Committed by GitHub

Date Picker year selectors announce as 'buttons' to accessibility framework. (#96546)

parent 2df7dca8
...@@ -1224,6 +1224,7 @@ class _YearPickerState extends State<YearPicker> { ...@@ -1224,6 +1224,7 @@ class _YearPickerState extends State<YearPicker> {
child: Center( child: Center(
child: Semantics( child: Semantics(
selected: isSelected, selected: isSelected,
button: true,
child: Text(year.toString(), style: itemStyle), child: Text(year.toString(), style: itemStyle),
), ),
), ),
......
...@@ -840,6 +840,7 @@ void main() { ...@@ -840,6 +840,7 @@ void main() {
hasTapAction: true, hasTapAction: true,
isSelected: year == 2016, isSelected: year == 2016,
isFocusable: true, isFocusable: true,
isButton: true,
)); ));
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment