Skip to content

Commit ffce3ec

Browse files
authored
Merge pull request #78 from companieshouse/feature/skiplink-styling-fix
Update content ids so that the skip link works while not affecting page style
2 parents d485693 + 62bc3e5 commit ffce3ec

File tree

10 files changed

+22
-15
lines changed

10 files changed

+22
-15
lines changed

templates/company/company_name_availability/form.html.tx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
% cascade base { title=> "Company Name Availability Checker - Companies House", classes=>"profile", disable_header_search => 1 }
22
% around content -> {
33

4-
<div class="column-full-width">
5-
<h1 class="main-title left" id="content"">
4+
<div class="column-full-width" id="content">
5+
<h1 class="main-title left">
66
<label for="site-search-text" class="heading-xlarge">
77
Company name availability checker
88
</label>

templates/company/follow/list.html.tx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
% cascade base { title => 'Follow ' ~ $company.company_name , form_page => 1, classes => "transaction service" }
22
% around content -> {
3-
<div role="article" class="text follow-confirmation" id="content">
3+
<div role="article" class="text follow-confirmation">
4+
<div id="content" class="content-override"></div>
45
<h1 class="heading-xlarge" id="follow-company-title"><% l('Follow a company') %></h1>
56
<div class="text" id="follow-company-confirmation-prompt">
67
<h2 class="heading-large"><% $company.company_name %> (<% $company.company_number %>)</h2>

templates/includes/company/page_header.tx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<div class="company-header">
2-
<p id="content" class="heading-xlarge"><% $company.company_name %></p>
2+
<div id="content" class="content-override"></div>
3+
<p class="heading-xlarge"><% $company.company_name %></p>
34
<p id="company-number">
45
% if $company.type == 'uk-establishment' {
56
<% l('UK establishment number') %>

templates/includes/transactions.tx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<a class="link-back id="back-button" href="javascript:history.back()">Back</a>
22

3-
<header class="text" id="content">
3+
<header class="text">
4+
<div id="content" class="content-override"></div>
45
<h1 id="page-header"class="heading-xlarge">
56
<% $title %>
67
</h1>

templates/personal_appointments/get.html.tx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<script src='//<% $cdn_url %>/javascripts/vendor/selection-buttons.js'></script> <!-- Needed for new GDS-style radio buttons and checkboxes -->
55
<script src='//<% $cdn_url %>/javascripts/vendor/application.js'></script> <!-- Needed for new GDS-style radio buttons and checkboxes -->
66

7-
<header class="text" id="content">
7+
<div id="content" class="content-override"></div>
8+
<header class="text">
89
<h1 class="heading-xlarge" id="officer-name"><% $officer.name %></h1>
910
</header>
1011

templates/search/form.tx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
% if $search_type == "officers" {
2-
<form id="search" action="/search/officers" method="get" accept-charset="utf-8" role="search" class="<% $header_or_body=='header'? 'site-search' : 'search-header js-search-hash' %>">
2+
<form id="content" action="/search/officers" method="get" accept-charset="utf-8" role="search" class="<% $header_or_body=='header'? 'site-search' : 'search-header js-search-hash' %>">
33
% } elsif $search_type == 'disqualified-officers' {
4-
<form id="search" action="/search/disqualified-officers" method="get" accept-charset="utf-8" role="search" class="<% $header_or_body=='header'? 'site-search' : 'search-header js-search-hash' %>">
4+
<form id="content" action="/search/disqualified-officers" method="get" accept-charset="utf-8" role="search" class="<% $header_or_body=='header'? 'site-search' : 'search-header js-search-hash' %>">
55
% } elsif $search_type == 'all' {
6-
<form id="search" action="/search" method="get" accept-charset="utf-8" role="search" class="<% $header_or_body=='header' ? 'search-header' : 'search-header js-search-hash' %>">
6+
<form id="content" action="/search" method="get" accept-charset="utf-8" role="search" class="<% $header_or_body=='header' ? 'search-header' : 'search-header js-search-hash' %>">
77
% } else {
8-
<form id="search" action="/search/companies" method="get" accept-charset="utf-8" role="search" class="<% $header_or_body=='header'? 'site-search' : 'search-header js-search-hash' %>">
8+
<form id="content" action="/search/companies" method="get" accept-charset="utf-8" role="search" class="<% $header_or_body=='header'? 'site-search' : 'search-header js-search-hash' %>">
99
% }
1010

1111
% if ($header_or_body == 'header') {
1212
<div class="content">
1313
% } else {
1414
% if !$results {
15-
<h1 id="content" class="main-title center">
15+
<h1 id="start-searching" class="main-title center">
1616
<label class="heading-xlarge">
1717
Search the register
1818
</label>

templates/static_pages/help/contact-us.html.tx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
% cascade base { title => 'Contact Us - Companies House service', searchpage => 1, disable_header_search => 1 }
22
% around content -> {
33
<article class="text">
4-
<h1 id="content" class="heading-xlarge">Contact us</h1>
4+
<div id="content" class="content-override"></div>
5+
<h1 class="heading-xlarge">Contact us</h1>
56
<p>You may find the answer to your enquiry on the <a href="https://www.gov.uk/government/organisations/companies-house">Companies House website</a> or you can <a href="mailto:[email protected]">email us</a>.</p>
67
<h2 class="heading-medium">Contact Centre</h2>
78
<ul class="text-list">

templates/static_pages/help/cookies.html.tx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<article class="text" id="content">
55

6-
<h1 id="content" class="heading-xlarge">
6+
<h1 class="heading-xlarge">
77
Cookies
88
</h1>
99
<p>Companieshouse.gov.uk puts small files (known as ‘cookies’) onto your computer to collect information about how you browse the site.</p>

templates/static_pages/help/guidance.html.tx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88
<div class="text">
99
<header>
10-
<h1 class="heading-xlarge" id="content">File abridged or full accounts</h1>
10+
<div id="content" class="content-override"></div>
11+
<h1 class="heading-xlarge">File abridged or full accounts</h1>
1112
</header>
1213

1314
<p>You can now file abridged or full accounts here too. While we develop this new service, you should continue to use <a href="https://www.gov.uk/government/organisations/companies-house/about/about-our-services#webfiling">WebFiling<span class="visuallyhidden"> Link opens in new tab/window</span></a> for other types of accounts.</p>

templates/static_pages/help/other-filings.html.tx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88
<div class="text">
99
<header>
10-
<h1 class="heading-xlarge" id="content">Other document filings</h1>
10+
<div id="content" class="content-override"></div>
11+
<h1 class="heading-xlarge">Other document filings</h1>
1112
</header>
1213

1314
<p>During the beta service development you should continue to use <a href="https://www.gov.uk/government/organisations/companies-house/about/about-our-services#webfiling">WebFiling<span class="visuallyhidden"> Link opens in new tab/window</span></a> to file your company information online.</p>

0 commit comments

Comments
 (0)