markup: Add tabindex="0" to default <pre> wrapper
authorrhymes <github@rhymes.dev>
Thu, 15 Jul 2021 14:48:39 +0000 (16:48 +0200)
committerGitHub <noreply@github.com>
Thu, 15 Jul 2021 14:48:39 +0000 (16:48 +0200)
commitf27e542442d19436f1428cc22bb03aca398d37a7
tree9f3b53dc99405d4bcd4957a4ada4bd0077d5818c
parentae6cf93c84c3584b111f4b9fa3fb4e3f63d37915
markup: Add tabindex="0" to default <pre> wrapper

Currently the generated `<pre>` element isn't fully accessible as it can't be focused by keyboard users.
To make this fully accessible, the attribute `tabindex="0"` should be added to the `<pre>` tag.

Closes #7194
hugolib/embedded_shortcodes_test.go
hugolib/page_test.go
markup/goldmark/convert_test.go
markup/highlight/highlight.go
markup/highlight/highlight_test.go