-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve accessibility of card link titles #3793
Comments
Solution includes the following HTML as approved by @accesswatch. Add a |
Need help with the Not sure if this is on the right track? /modules/custom/az_card/src/Plugin/Field/FieldWidget/AZCardWidget.php
|
Joe added some code to help the requirement needs. Dana to evaluate locally. |
Thank you @joeparsons! Only thing left I would like to do is add an error message when the card is collapsed. I will need help with this as well.
Collapsing the card deck entirely also allows the required field to be bypassed on page save. |
Problem/Motivation
Issue found on a Dubbot scan.
Describe the bug
When the Card Link URL field is filled out and the Card Link Title is not populated, there is an accessibility concern because screen readers cannot tell what the link is.
To Reproduce
<a>
tag on the cardProposed resolution
Hidden
or similarExpected behavior
I expect links to have accurate descriptive link titles.
Additional context
Consider
sr-only
class. https://getbootstrap.com/docs/4.0/utilities/screenreaders/Expect to create a database update to look for empty titles, with populated URLs. In this case, we should have a reasonable default. Maybe auto-populate the link title with the card title and select the hidden link style?
Or just not allow save and have a notice with help text?
The text was updated successfully, but these errors were encountered: