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> {
child: Center(
child: Semantics(
selected: isSelected,
button: true,
child: Text(year.toString(), style: itemStyle),
),
),
......
......@@ -840,6 +840,7 @@ void main() {
hasTapAction: true,
isSelected: year == 2016,
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