From 0deb9e6def15e6283360378fed49def58d921264 Mon Sep 17 00:00:00 2001 From: Jonathan Hefner Date: Tue, 1 Aug 2023 13:35:43 -0500 Subject: [PATCH] Drop "logo" from logo image alt text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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". --- lib/rdoc/generator/template/rails/_panel.rhtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rdoc/generator/template/rails/_panel.rhtml b/lib/rdoc/generator/template/rails/_panel.rhtml index ba06c1dd..7e2c961a 100644 --- a/lib/rdoc/generator/template/rails/_panel.rhtml +++ b/lib/rdoc/generator/template/rails/_panel.rhtml @@ -4,7 +4,7 @@