Skip to content

Commit 0deb9e6

Browse files
Drop "logo" from logo image alt text
From https://www.w3.org/WAI/tutorials/images/tips/: > Usually, there’s no need to include words like “image”, “icon”, or > “picture” in the alt text. People who can see will know this already, > and screen readers announce the presence of an image. And from https://www.a11yproject.com/posts/alt-text/: > Make sure the description of the image is useful. For example, if the > image is of a company's logo, the `alt` should be the company's name. > The word "logo" is not necessary or useful as part of the alternative > text. Additionally, this commit uses `project_name` in the alt text instead of hardcoding "Ruby on Rails".
1 parent 7c8e9f6 commit 0deb9e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rdoc/generator/template/rails/_panel.rhtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<nav class="panel panel_tree" id="panel" data-turbo-permanent>
55
<div class="logo">
66
<a href="/">
7-
<img width="300" src="/i/logo.svg" alt="Ruby on Rails logo">
7+
<img width="300" src="/i/logo.svg" alt="<%= project_name %>">
88
</a>
99
</div>
1010
<div class="header">

0 commit comments

Comments
 (0)