Skip to content
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

Don't use links for headings in Ember Times #696

Open
mansona opened this issue Jun 25, 2020 · 5 comments
Open

Don't use links for headings in Ember Times #696

mansona opened this issue Jun 25, 2020 · 5 comments
Labels
data wrangling pinned Don't mark me as stale!

Comments

@mansona
Copy link
Member

mansona commented Jun 25, 2020

This is an issue that currently affects the production blog, so it could be done after the release 👍

If you look at any of the Ember Times posts you will see that all of the headers are also links. This is not the best experience from an accessibility perspective and we need to change the structure of these headers

Right now the HTML is something like this:

<h2 data-embertimes-section-title="0"><a href="https://jamescdavis.com/using-ember-concurrency-with-typescript/">Using ember-concurrency with TypeScript 🤝</a></h2>

and we should really change it to something more like:

<h2 data-embertimes-section-title="0">Using ember-concurrency with TypeScript 🤝</h2>
<a href="https://jamescdavis.com/using-ember-concurrency-with-typescript/">External Link (->)</a>

Once we figure out how this should work in the Markdown then we should write some sort of script to update all of the posts that have this problem

Example:

@amyrlam
Copy link
Member

amyrlam commented Mar 12, 2021

I think this done, article title can be a link or not a link now?

@amyrlam
Copy link
Member

amyrlam commented Apr 14, 2021

@mansona I think this is done, closing. We have links and non-links for titles here: https://blog.emberjs.com/the-ember-times-issue-177

But if I'm wrong, please let me know / reopen!

@amyrlam amyrlam closed this as completed Apr 14, 2021
@mansona
Copy link
Member Author

mansona commented Apr 15, 2021

I think this was more of an accessibility issue that @MelSumner brought up and if I remember correctly we should not have any titles that are links.

I've lost track of this issue a bit 🤔 I remember starting a conversation to ask if there was any guidance in WCAG that explained why we cared about this but I think other things came up and I didn't chase it. I'm going to open this up again and leave it for @MelSumner to let us know if it's something that we care about 👍 I hope that's ok @amyrlam ?

@mansona mansona reopened this Apr 15, 2021
@amyrlam
Copy link
Member

amyrlam commented Apr 15, 2021

Sure sounds good! Sorry, I think I misunderstood the issue before. If you can explain the a11y issue, let me know! I did some googling and found this https://css-tricks.com/link-header-header-link/, but it's not exactly the same, glosses over the a11y bit.

Wanted to note: We can stop making headers links altogether for future issues, and just have the link in the paragraph text below the header if preferred...?

@mansona
Copy link
Member Author

mansona commented Apr 16, 2021

@amyrlam I think this is the crux of the problem. I don't fully understand the issue, I just remember that we had a long conversation about it in a learning team meeting and @MelSumner was demoing some alternative HTML that we can use.

Even that article you link to punts on the a11y question:

Accessibility concerns
I’m not sure, I’m afraid. Are there any?

😫

Personally I wouldn't want to make any change until we are sure of the A11y impacts of this and therefore are sure of the right remedy. @MelSumner do you think you can help us on this one? if not then do you know someone that we might be able to ask?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data wrangling pinned Don't mark me as stale!
Projects
None yet
Development

No branches or pull requests

2 participants