Skip to content

Commit

Permalink
Add tabindex for fallback code view
Browse files Browse the repository at this point in the history
  • Loading branch information
timblair committed Nov 14, 2024
1 parent d2ed7ea commit 872e85c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/govuk_tech_docs/tech_docs_html_renderer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def block_diagram(code)
if ok && File.exist?(output_path)
File.read(output_path)
else
"<pre>#{code}</pre>"
%Q{<pre tabindex="0">#{code}</pre>}
end
end
end
Expand Down

0 comments on commit 872e85c

Please sign in to comment.