Skip to content

use configured title as alt attribute of logo image#7

Open
jelhan wants to merge 1 commit intoempress:mainfrom
jelhan:use-configured-link-title-as-image-alt-attribute
Open

use configured title as alt attribute of logo image#7
jelhan wants to merge 1 commit intoempress:mainfrom
jelhan:use-configured-link-title-as-image-alt-attribute

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