Skip to content

[Discussion/proposal] Places to address focus management #281

@rianrietveld

Description

@rianrietveld
  • I've confirmed that this document is not already in the Docs Project

Discussion
Info about focus management (keyboard and visual) is needed handled in multiple places. How to address this without having to repeat info. And how to set this up that is easily linked to from other topics.

We need this info about focus in for example Web forms

  • No positive tabindex of first form field
  • In case of summary error messages
  • In the case of no summary error messages
  • In case of success
  • When a dialog is used in a form
  • When a tooltip is used (advise accordeon)
  • Use of autofocus

I propose to write a main topic (with sub pages) in Frontend code named "Focus handling", with the how to and then refer to that in the topics that need that info. Addressing visual focus and keyboard focus and also what is announced by a screen reader when a target gets focus.

Proposed menu structure

Standards and Best practice > Frontend code:

Related WCAG SC:

  • 1.3.1 Info and Relationships (Level A).
  • 2.1.1 Keyboard (Level A).
  • 2.1.2 No Keyboard Trap (Level A).
  • 2.4.3 Focus Order (Level A).
  • 2.4.7 Focus Visible (Level AA).
  • 2.4.11 Focus Not Obscured (Minimum) (Level AA).
  • Anything else?

Related issue:
#158

Metadata

Metadata

Assignees

Labels

DocumentationImprovements or additions to documentation

Type

No type
No fields configured for issues without a type.

Projects

Status

In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions