mirror of
https://github.com/golang/go
synced 2024-11-18 13:04:46 -07:00
godoc: add alt attr to gopher on main package index
The gopher with a miner hat on /pkg had no alt attribute so screen readers would announce the image by its filename. As the image is purely decorative, adding the empty string as alternative text prevents the image from being announced. For golang/go#22171 Change-Id: Ib214f296d3d9f9084c44d4e33d1cbe432f2183ed Reviewed-on: https://go-review.googlesource.com/69130 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
ebae2dcdba
commit
0b88a3aa07
@ -255,7 +255,7 @@
|
||||
</dl>
|
||||
</div>
|
||||
<h2 id="stdlib">Standard library</h2>
|
||||
<img class="gopher" src="/doc/gopher/pkg.png"/>
|
||||
<img alt="" class="gopher" src="/doc/gopher/pkg.png"/>
|
||||
{{end}}
|
||||
|
||||
|
||||
|
@ -1908,7 +1908,7 @@ function cgAddChild(tree, ul, cgn) {
|
||||
</dl>
|
||||
</div>
|
||||
<h2 id="stdlib">Standard library</h2>
|
||||
<img class="gopher" src="/doc/gopher/pkg.png"/>
|
||||
<img alt="" class="gopher" src="/doc/gopher/pkg.png"/>
|
||||
{{end}}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user