Skip to content

Commit 872e85c

Browse files
committed
Add tabindex for fallback code view
1 parent d2ed7ea commit 872e85c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/govuk_tech_docs/tech_docs_html_renderer.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def block_diagram(code)
123123
if ok && File.exist?(output_path)
124124
File.read(output_path)
125125
else
126-
"<pre>#{code}</pre>"
126+
%Q{<pre tabindex="0">#{code}</pre>}
127127
end
128128
end
129129
end

0 commit comments

Comments
 (0)