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

Commit 41abfeb

Browse files
TedSandernshahan
authored andcommitted
Add the alert role to the error display, and use blurUpdate for the example inputs to make them more accessible.
PiperOrigin-RevId: 200731485
1 parent d1f8e81 commit 41abfeb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/material_input/material_input_default_value_accessor.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ import 'base_material_input.dart';
1111

1212
/// [ControlValueAccessor] for [MaterialInputComponent] that updates on
1313
/// keypress.
14+
///
15+
/// Note: This is less accessible since any errors that are produced by the
16+
/// input are shown immediately which is distracting when using a screen reader.
17+
/// instead please consider using [blurUpdate] which only shows errors after
18+
/// a blur event.
1419
// TODO(google): Migrate away from this being the default accessor.
1520
@Directive(
1621
selector: 'material-input:not([blurUpdate]):not([changeUpdate])',

0 commit comments

Comments
 (0)