mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-14 15:34:20 -05:00
Screenreaders announce the title of the page when it loads and their users are used to it signifying a new page. By focusing a form control when the page loads, this announcement is replaced with that of the control label. This commit prefixes the label with the page title so it gets announced when the page loads, notifying screenreader users that they are on a new page. The page title prefix is removed once focus shifts from the form control as its presence in any further announcements could be confusing.