rebelappstudio / accessibility_tools

MIT License
70 stars 4 forks source link

Ensure form elements have labels #4

Closed tomgilder closed 1 year ago

tomgilder commented 1 year ago

Ensure form elements have directly associated labels

For example, this isn't great for people using a screen reader:

Column(
  children: const [
    Text('Name'),
    TextField(),
  ],
)

If the user focuses on the text field, the label isn't directly associated with the accessibility node.