You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.
Delta is using .sr-only visually hidden text to improve accessibility and SEO on some links. We need a way to replicate this in Franklin.
Technical proposal
Let author add […] as part of the link text
Client-side, we then go through all the links in the main content, and if the textContent contains both [ followed by ], when then do a regex replace on the innerHTML with <span class="sr-only">…</span>.
The text was updated successfully, but these errors were encountered:
Delta is using
.sr-only
visually hidden text to improve accessibility and SEO on some links. We need a way to replicate this in Franklin.Technical proposal
[…]
as part of the link texttextContent
contains both[
followed by]
, when then do a regex replace on theinnerHTML
with<span class="sr-only">…</span>
.The text was updated successfully, but these errors were encountered: