_content: make purpose of buttons clear to screen reader users
Fix to make screen reader users understand the purpose of Get started and download buttons Change-Id: Ia8c75721a57a503c8659db328343f4dd5ac98ed8 Reviewed-on: https://go-review.googlesource.com/c/website/+/506999 Reviewed-by: Jamal Carvalho <jamal@golang.org> Reviewed-by: Nooras Saba <saba@golang.org> Run-TryBot: Jamal Carvalho <jamal@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
Родитель
f7c0397718
Коммит
57cac55d24
|
@ -40,11 +40,14 @@ summary: Go is an open source programming language that makes it simple to build
|
|||
<div
|
||||
data-version=""
|
||||
class="js-latestGoVersion">
|
||||
<a class="Primary" href="/learn/">Get Started</a>
|
||||
<a class="Secondary js-downloadBtn"
|
||||
href="/dl"
|
||||
>Download
|
||||
</a>
|
||||
<a class="Primary" href="/learn/" aria-label="Get Started" aria-describedby="getStarted-description" role="button">Get Started</a>
|
||||
<a class="Secondary js-downloadBtn" href="/dl" aria-label="Download" aria-describedby="download-description" role="button">Download</a>
|
||||
<div class="screen-reader-only" id="getStarted-description" hidden>
|
||||
Opens a new window with the Get Started guide.
|
||||
</div>
|
||||
<div class="screen-reader-only" id="download-description" hidden>
|
||||
Opens a new window to download Go.
|
||||
</div>
|
||||
</div>
|
||||
<div class="Hero-footnote">
|
||||
<p>
|
||||
|
|
Загрузка…
Ссылка в новой задаче