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

use configured title as alt attribute of logo image #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jelhan
Copy link
Contributor

@jelhan jelhan commented Apr 17, 2020

No description provided.

@mansona
Copy link
Member

mansona commented Mar 11, 2021

Hey thanks for the contribution @jelhan 👍

I'm wondering if this is an appropriate change 🤔 I'm wondering if you should have any title on the image at all? or should we make it presentation only?

What do you think?

@jelhan
Copy link
Contributor Author

jelhan commented Mar 11, 2021

I'm wondering if this is an appropriate change thinking I'm wondering if you should have any title on the image at all? or should we make it presentation only?

The title is not rendered at all if the blog has a logo.

{{#if guidemaker.logo}}
<img src={{guidemaker.logo}}>
{{else}}
<span>
{{guidemaker.title}}
</span>
{{/if}}
Therefore I would not consider the logo as presentation only. The logo is the only thing which tells the user what the guide is about. For people using assistive technologies that information would not be available unless the alt attribute is set. So actually I think it's an accessibility question. If I recall correctly, a failing a11y test or linting rule was motivating this pull request.

@mansona
Copy link
Member

mansona commented Mar 7, 2024

hey are you still interested in looking at this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants