va-telephone - Update messageAriaDescribedby value for "Aria Described By" story - #2067
Conversation
messageAriaDescribedby valuemessageAriaDescribedby value for "Aria Described By" story
TimRoe
left a comment
There was a problem hiding this comment.
Approving, but just wanted to note I'm not sure why this needs aria-describedby at all vs just having the label then the link. Might deleting it entirely be better a11y because screen reader users know interacting with a phone number link will call it?
|
Hey @TimRoe. Good question. There's ongoing discussions between @amyleadem and @jeana-adhoc about whether or not the This ticket contains the original request for this functionality. Summary of the pertinent portions of that ticket:
Hopefully that helps answer your question. |
amyleadem
left a comment
There was a problem hiding this comment.
Thanks for working this @RyanMunsch. I agree with @TimRoe that this component probably does not need an aria-describedby, but since we already have the prop, we should demonstrate it in the best use case we can. This will also be partnered with a guidance update that discourages the use of the attribute unless it is really necessary.
Just had a small recommendation to switch the visible and aria-describedby text. Curious what you think.
Chromatic
https://6099-va-telephone-messageAria-story--65a6e2ed2314f7b8f98609d8.chromatic.com
Summary
Updates the value passed to
messageAriaDescribedbyprop for the "Aria Described By" story ofva-telephoneso that it is not the same text of the contextual sibling element.Description
Updates the value passed to the
messageAriaDescribedbyprop in the "Aria Described By" story ofva-telephoneso it no longer matches the text content of the sibling<span>element that serves as a label for the component.This aligns the Storybook example with new accessibility guidance added to the component's docs. The underlying motivation for both changes is the same: duplicate
aria-describedbyvalues can cause screen readers to announce the label multiple times.Related tickets and links
Closes department-of-veterans-affairs/vets-design-system-documentation#6099
Screenshots
Before
After
Testing and review
Approvals
See the QA Checklists section below for suggested approvals. Use your best judgment if additional reviews are needed. When in doubt, request a review.
Approval groups
Add approval groups to the PR as needed:
QA checklists
Use the QA checklists below as guides, not rules. Not all checklists will apply to every PR but there could be some overlap.
In all scenarios, changes should be fully tested by the author and verified by the reviewer(s); functionality, responsiveness, etc.
✨ New Component Added
minorlabel🌱 New Component Variation Added
minorlabel🐞 Component Fix
patchlabel♿️ Component Fix - Accessibility
patchlabel🚨 Component Fix - Breaking API Change
majorlabel🔧 Component Update - Non-Breaking API Change
minorlabel📖 Storybook Update
ignore-for-releaselabel🎨 CSS-Library Update
css-librarylabel