Skip to content

Commit

Permalink
Merge pull request #210 from alphagov/stop-linking-images-to-new-tab
Browse files Browse the repository at this point in the history
Stop linking images to new tabs
  • Loading branch information
AlanGabbianelli authored Feb 26, 2021
2 parents dbd1949 + 3f9ba86 commit 0a119d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- [#210: Fix issue with WCAG 2.1 success criterion 1.3.1 (Info and Relationships)](https://github.com/alphagov/tech-docs-gem/pull/210)

### Ruby version bump

We've updated the Ruby version supported:
Expand Down
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 @@ -20,7 +20,7 @@ def header(text, level)
end

def image(link, *args)
%(<a href="#{link}" target="_blank" rel="noopener noreferrer">#{super}</a>)
%(<a href="#{link}" rel="noopener noreferrer">#{super}</a>)
end

def table(header, body)
Expand Down

0 comments on commit 0a119d8

Please sign in to comment.