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
I may be misremembering, I have discussed this with @ahmadabdolsaheb a while back and talked about turning the heading into links, so it's easier for people to share sections of the articles.
The feature will be like this
script that create a link in front of it
constheaders=queryselectorAll('h1, h2, h3');headers.forEach((header)=>{constLink=createELement('a')constnavigationHead=Link.href(${header.id})constLinkStyle=Link.class('navigationHead srOnly')constLinkText=Link.innerText('Click to copy Headers link')header.append('Link')header.addEventListener("click",()=>{clipboard(`${href}#${header.id}`,);});})
::after pseudo-class that cover the heading and doesn't harm screen readers.
This trick used for the cards tho, but maybe it's okay to apply it here too, this will make the heading stay heading and link after it can cover, and for screen readers, they won't read the heading when focused over the link.
I have been thinking hard how to make the screen-reader text translatable in crowdin, but I can't. I just hope that browser translation is good enough for that.
The text was updated successfully, but these errors were encountered:
Describe the feature
I may be misremembering, I have discussed this with @ahmadabdolsaheb a while back and talked about turning the heading into links, so it's easier for people to share sections of the articles.
The feature will be like this
::after
pseudo-class that cover the heading and doesn't harm screen readers.Because the text is srOnly, we can use pseudo-classes like mentioned in this article to cover the heading with the link https://inclusive-components.design/cards/#thepseudocontenttrick
This trick used for the cards tho, but maybe it's okay to apply it here too, this will make the heading stay heading and link after it can cover, and for screen readers, they won't read the heading when focused over the link.
I have been thinking hard how to make the screen-reader text translatable in crowdin, but I can't. I just hope that browser translation is good enough for that.
The text was updated successfully, but these errors were encountered: