Fix: Add accessible label to ability test payload textarea in Abiliti…#649
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #649 +/- ##
=============================================
- Coverage 74.58% 74.57% -0.01%
Complexity 1754 1754
=============================================
Files 85 85
Lines 7547 7548 +1
=============================================
Hits 5629 5629
- Misses 1918 1919 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…es Explorer (#649) Fixed - Added an accessible label to the ability test payload textarea in the Abilities Explorer. Co-authored-by: Trushiv04 <trushiv@git.wordpress.org> Co-authored-by: dkotter <dkotter@git.wordpress.org>
What?
Closes #648
Adds an accessible label to the JSON payload
<textarea>in the Abilities Explorer test screen.Why?
The test input
<textarea id="ability-test-payload">had no associated label,aria-label, oraria-labelledby. Screen readers announced only "text area" with no indication of the field's purpose, which is a WCAG 2.1 AA violation (SC 1.3.1 and SC 4.1.2).How?
Added a visually hidden
<label class="screen-reader-text">before the textarea, linked via theforattribute matching the existingid. This uses WordPress's standardscreen-reader-textpattern, so there is no visual change the label is only exposed to assistive technology.Use of AI Tools
AI assistance: Yes
Tool(s): Claude
Used for: Identifying the issue location, and verifying coding standards. Final implementation and testing were done by me.
Testing Instructions
Screenshots or screencast
Before

(screen reader announces "You are currently on a text area")
After

(screen reader announces "Ability test input (JSON), edit text")
Changelog Entry