Skip to content

Commit

Permalink
Fixing anchor bug and adding italic styling.
Browse files Browse the repository at this point in the history
The anchor was after the heading which in Safari and Chrome looked like you are in the middle of paragraph not in the beginning.
  • Loading branch information
zaparka committed Jun 5, 2018
1 parent 2518528 commit 07d535f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/helpers/yaml_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def display_section(yaml_hash, from = 2, add_to = nil)
def add_header
if @this_section[:title].present?
@result << header_block do
header_text + anchor_tag
anchor_tag + header_text
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ en:
- li: <a href="#general_data_protection_regulations_gdpr">General Data Protection Regulations (GDPR)</a>
- li: <a href="#hmcts_privacy_notice">HMCTS privacy notice</a>
- li: <a href="#disclaimer">Disclaimer</a>
- p: By using this ‘Help with Fees’ service you agree to our privacy policy and to these terms and conditions. Read them carefully.
- p: <i>By using this ‘Help with Fees’ service you agree to our privacy policy and to these terms and conditions. Read them carefully.</i>
- title: General terms and conditions
parts:
- p: These terms and conditions affect your rights and liabilities under the law. They govern your use of, and relationship with, this ‘Help with Fees’ service. They do not apply to other Ministry of Justice (HM Courts and Tribunals Service) services, or to any department or service that is linked to in this service.
Expand Down

0 comments on commit 07d535f

Please sign in to comment.