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

Build towards easier WCAG Compliance #109

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

swflint
Copy link

@swflint swflint commented Dec 11, 2024

Hello!

I really like this theme, but I need better WCAG compliance than it offers by default.

I'm starting to edit partials to help make the template more compliant. I will mark it as ready, but I would appreciate your feedback.

@@ -7,6 +7,6 @@ <h3 class="mb-0">{{ .Params.pubtype }} - <a href="{{ .Permalink }}">{{ .Params.t
</div>
<div class="resume-date text-md-right">
<span class="text-primary">{{ .Params.date | dateFormat "January 2006" }}</span>
<img src="{{ .Params.image }}" style="max-width:250px;padding:5px;"/>
<img src="{{ .Params.image }}" {{if .Params.imageDescription }}alt="{{ .Params.imageDescription }}"{{ else }}alt=""{{ end }} style="max-width:250px;padding:5px;"/>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is an empty alt preffered over just omitting it?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty Alt can be used to indicate an image is decorative, see https://www.w3.org/WAI/tutorials/images/decorative/

@eddiewebb
Copy link
Owner

Appreciate 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