Page MenuHomePhorge

a11y: Set textarea name parameter also as aria-label
AcceptedPublic

Authored by aklapper on Sun, Jun 1, 11:24.

Details

Summary

Form elements should have associated labels per https://www.w3.org/WAI/tutorials/forms/labels/
Setting the name parameter for a <textarea> also as its aria-label is clearly more accessible than exposing no hints at all.

Ref T16072

Test Plan

Go to http://phorge.localhost/D1, inspect comment field (below "Add Action..." dropdown) markup, see additional aria-label="comment" for <textarea>
Go to http://phorge.localhost/T1, inspect comment field (below "Add Action..." dropdown) markup, see additional aria-label="comment" for <textarea>
Go to http://phorge.localhost/maniphest/task/edit/1/, inspect Description field markup, see additional aria-label="description" for <textarea>
Go to http://http://phorge.localhost/paste/edit/1/, inspect Text field markup, see additional aria-label="text" for <textarea>
Optionally, run an Accessibility check in Chromium Lighthouse.

Diff Detail

Repository
rP Phorge
Branch
a11y-T16072-02 (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 2035
Build 2035: arc lint + arc unit