Date Picker year selectors announce as 'buttons' to accessibility framework. (#96546)
This commit is contained in:
@@ -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,
|
||||
));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user