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
Add a card to a page
Complete the Card Link URL field
Do not fill in the Card Link Title field
Save
Inspect the page and find the card
Observe no title or content around the <a> tag on the card
Proposed resolution
Require the Card Link Title field -- Only when URL field is populated
Add a selection in the Card Link Style dropdown for Hidden or similar
Expected behavior
I expect links to have accurate descriptive link titles.
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?
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?