- Issue created by @Grimreaper
- 🇯🇴Jordan Rajab Natshah Jordan
This would be so nice. Thanks a lot for filing the issue.
I faced an issue with Read more link or Learn more link in a call to action button
My current status is
The optimal target to work with
aria-label="[node:field_link:text] about [node:title]" target="_parent"
A common accessibility challenge arises when multiple identical links (e.g., "Read Article") appear on a page. Without additional context, screen reader users may struggle to distinguish between links. ARIA attributes, such as aria-label, allow developers to add meaningful descriptions to links, ensuring clarity and context.
Helpful resource: What the Heck is ARIA A Beginner's Guide to ARIA for Accessibility - Kat Shaw (A11yTalks - Aug 2024)
Thanks to A11yTalks and Kat Shaw for this
Enhancing "Read Article" Links for Accessibility
Replace generic "Read Article" links with meaningful ARIA labels:
<a aria-label="Read the full article of {{ title }}">Read Article</a>
If the link text changes to "Learn more", "Read more", or "Click here", the {{ title }} token will still help maintain context for screen reader users.
- Merge request !378Issue #3496209: Add Support for Attributes Prop Type Source Replacing Token Values → (Open) created by Rajab Natshah
- 🇯🇴Jordan Rajab Natshah Jordan
First Draft MR - Integration with the Token module
- 🇯🇴Jordan Rajab Natshah Jordan
Tested with
aria-label="[node:field_link:title] about [node:title]" target="_parent"
- 🇯🇴Jordan Rajab Natshah Jordan
Attached a static
ui_patterns--2025-05-16--3496209--mr-378.patch
file to this point in MR378
To be used with Composer Patches - 🇫🇷France pdureau Paris
Hi Rajab,
Thanks for the MR, it is very exciting.
2 feedbacks:
- Do we really need dependency to the contrib
token
module? Core Token API is not enough? - Can you add an automatic test with
aria-label="[node:field_link:title] about [node:title]" target="_parent"
?
- Do we really need dependency to the contrib
- 🇯🇴Jordan Rajab Natshah Jordan
Thanks, Pierre, for the quick review.
1- I will test that - you are right.
2- For sure, we need- Automated unit testing coverage
- Automated functional testing coverage
- Documentation -- the doc in code is so nice by the way!!
3- We may need to do a small UX/UI designer responsibilities - to help site builders so that they can use a token.