govuk_publishing_components 12.20.0 → 12.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +2 -2
  3. data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +8 -0
  4. data/app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb +8 -8
  5. data/app/views/govuk_publishing_components/components/_contextual_footer.html.erb +10 -0
  6. data/app/views/govuk_publishing_components/components/_contextual_sidebar.html.erb +5 -14
  7. data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +5 -3
  8. data/app/views/govuk_publishing_components/components/_related_navigation.html.erb +10 -6
  9. data/app/views/govuk_publishing_components/components/docs/contextual_breadcrumbs.yml +3 -2
  10. data/app/views/govuk_publishing_components/components/docs/contextual_footer.yml +71 -0
  11. data/app/views/govuk_publishing_components/components/docs/contextual_sidebar.yml +18 -9
  12. data/app/views/govuk_publishing_components/components/docs/layout_footer.yml +17 -0
  13. data/app/views/govuk_publishing_components/components/docs/related_navigation.yml +53 -0
  14. data/app/views/govuk_publishing_components/components/related_navigation/_section.html.erb +10 -5
  15. data/config/locales/en.yml +5 -6
  16. data/lib/govuk_publishing_components.rb +0 -2
  17. data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +0 -4
  18. data/lib/govuk_publishing_components/presenters/related_navigation_helper.rb +108 -90
  19. data/lib/govuk_publishing_components/version.rb +1 -1
  20. data/node_modules/govuk-frontend/components/back-link/README.md +4 -73
  21. data/node_modules/govuk-frontend/components/breadcrumbs/README.md +4 -238
  22. data/node_modules/govuk-frontend/components/button/README.md +4 -174
  23. data/node_modules/govuk-frontend/components/character-count/README.md +4 -340
  24. data/node_modules/govuk-frontend/components/character-count/template.njk +0 -3
  25. data/node_modules/govuk-frontend/components/checkboxes/README.md +4 -705
  26. data/node_modules/govuk-frontend/components/checkboxes/template.njk +1 -0
  27. data/node_modules/govuk-frontend/components/date-input/README.md +4 -563
  28. data/node_modules/govuk-frontend/components/date-input/template.njk +1 -0
  29. data/node_modules/govuk-frontend/components/details/README.md +4 -128
  30. data/node_modules/govuk-frontend/components/error-message/README.md +4 -58
  31. data/node_modules/govuk-frontend/components/error-summary/README.md +4 -94
  32. data/node_modules/govuk-frontend/components/fieldset/README.md +4 -92
  33. data/node_modules/govuk-frontend/components/file-upload/README.md +4 -199
  34. data/node_modules/govuk-frontend/components/file-upload/template.njk +1 -0
  35. data/node_modules/govuk-frontend/components/footer/README.md +4 -91
  36. data/node_modules/govuk-frontend/components/footer/_footer.scss +22 -13
  37. data/node_modules/govuk-frontend/components/header/README.md +4 -351
  38. data/node_modules/govuk-frontend/components/hint/README.md +5 -77
  39. data/node_modules/govuk-frontend/components/input/README.md +4 -407
  40. data/node_modules/govuk-frontend/components/input/template.njk +1 -0
  41. data/node_modules/govuk-frontend/components/inset-text/README.md +4 -76
  42. data/node_modules/govuk-frontend/components/label/README.md +5 -97
  43. data/node_modules/govuk-frontend/components/panel/README.md +4 -93
  44. data/node_modules/govuk-frontend/components/phase-banner/README.md +4 -67
  45. data/node_modules/govuk-frontend/components/radios/README.md +4 -665
  46. data/node_modules/govuk-frontend/components/radios/template.njk +1 -0
  47. data/node_modules/govuk-frontend/components/select/README.md +4 -257
  48. data/node_modules/govuk-frontend/components/select/template.njk +1 -0
  49. data/node_modules/govuk-frontend/components/skip-link/README.md +4 -57
  50. data/node_modules/govuk-frontend/components/table/README.md +4 -368
  51. data/node_modules/govuk-frontend/components/tabs/README.md +4 -242
  52. data/node_modules/govuk-frontend/components/tag/README.md +4 -77
  53. data/node_modules/govuk-frontend/components/textarea/README.md +4 -193
  54. data/node_modules/govuk-frontend/components/textarea/template.njk +1 -0
  55. data/node_modules/govuk-frontend/components/warning-text/README.md +4 -63
  56. data/node_modules/govuk-frontend/components/warning-text/_warning-text.scss +1 -2
  57. data/node_modules/govuk-frontend/core/_lists.scss +17 -8
  58. data/node_modules/govuk-frontend/package.json +10 -10
  59. metadata +4 -5
  60. data/app/views/govuk_publishing_components/components/_taxonomy_navigation.html.erb +0 -116
  61. data/app/views/govuk_publishing_components/components/docs/taxonomy_navigation.yml +0 -119
  62. data/lib/govuk_publishing_components/presenters/taxonomy_navigation.rb +0 -47
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c05f837046ce0eb8bf88112196573cb3f6544730383a490092288461186e0234
4
- data.tar.gz: 1d661175ec5a8b7a5767e469fdb0ed829fbb1221e5c81dd4b149185adf6ac2e9
3
+ metadata.gz: f322f0df4f65c7b30d2292ca9f0c4fa2fcc4804cb5a3235c7f493c583463c83b
4
+ data.tar.gz: 998e34fc7a7595e85538de162b9fc325a2ff5de05821706acf7ddff678ed2d95
5
5
  SHA512:
6
- metadata.gz: '03228cae2a8df77b43367af87028b1997c02053dbe65fe8fe3db6756c9d55dfa9d239282d6ee73571722ccd487187f4db5b1535482d4663a76caf3689ad3a529'
7
- data.tar.gz: 5c67eff894869af5ebade7dcd9cd0eb5403fd0e5a1c8e8f968f10748cf50102cee3093a467f67891d66561e0dac3a0a8694fc5aec0354169a8a24115d12c5833
6
+ metadata.gz: 499e15846e14aeb7cb49d37b8eec17b6d2890867ec9efa0dd5ea35fc653e52fdd511ec81d413f64af3426c91dc0e8697dd4ece833cd89b25ff74ea5e7d251802
7
+ data.tar.gz: ab21c7e408f906b84d8867714a912dac1457352ce9c4440093ef0cb5202cc97b4627bd97277003247fa4a71a2c5eeaf13e4a459f9166ca60236fcf98381962c4
@@ -81,13 +81,13 @@
81
81
  }
82
82
 
83
83
  .gem-c-image-card__description {
84
- @include govuk-font($size: 16, $line-height: 1.5);
84
+ @include govuk-font($size: 16);
85
85
  padding-top: $gutter-one-quarter;
86
86
  word-wrap: break-word;
87
87
  }
88
88
 
89
89
  .gem-c-image-card__list {
90
- @include govuk-font($size: 16, $line-height: 1.5);
90
+ @include govuk-font($size: 16);
91
91
  position: relative;
92
92
  z-index: 2;
93
93
  padding: $gutter-one-quarter 0 0 0;
@@ -16,6 +16,14 @@
16
16
  padding-top: $gutter-half;
17
17
  }
18
18
 
19
+ .gem-c-related-navigation__sub-heading--footer {
20
+ @include bold-19;
21
+ border-top: none;
22
+ padding-top: 0;
23
+ margin-top: $gutter-half;
24
+ margin-bottom: $gutter-one-third;
25
+ }
26
+
19
27
  .gem-c-related-navigation__main-heading + .gem-c-related-navigation__sub-heading {
20
28
  border-top: none;
21
29
  padding-top: 0;
@@ -3,30 +3,30 @@
3
3
 
4
4
  <div class='gem-c-contextual-breadcrumbs'>
5
5
  <% if navigation.content_tagged_to_current_step_by_step? %>
6
- <!-- Rendering step by step nav breadcrumbs because there's 1 step by step -->
6
+ <%# Rendering step by step nav breadcrumbs because there's 1 step by step %>
7
7
  <%= render 'govuk_publishing_components/components/step_by_step_nav_header',
8
8
  navigation.step_nav_helper.header %>
9
9
  <% elsif navigation.content_is_tagged_to_a_live_taxon? && prioritise_taxon_breadcrumbs %>
10
- <!-- Rendering taxonomy breadcrumbs because the page is tagged to live taxons
11
- and we want to prioritise them over all other breadcrumbs -->
10
+ <%# Rendering taxonomy breadcrumbs because the page is tagged to live taxons
11
+ and we want to prioritise them over all other breadcrumbs %>
12
12
  <%= render 'govuk_publishing_components/components/breadcrumbs',
13
13
  breadcrumbs: navigation.taxon_breadcrumbs[:breadcrumbs],
14
14
  collapse_on_mobile: true %>
15
15
  <% elsif navigation.content_tagged_to_mainstream_browse_pages? %>
16
- <!-- Rendering parent-based breadcrumbs because the page is tagged to mainstream browse -->
16
+ <%# Rendering parent-based breadcrumbs because the page is tagged to mainstream browse %>
17
17
  <%= render 'govuk_publishing_components/components/breadcrumbs', breadcrumbs: navigation.breadcrumbs %>
18
18
  <% elsif navigation.content_has_curated_related_items? %>
19
- <!-- Rendering parent-based breadcrumbs because the page has curated related links -->
19
+ <%# Rendering parent-based breadcrumbs because the page has curated related links %>
20
20
  <%= render 'govuk_publishing_components/components/breadcrumbs', breadcrumbs: navigation.breadcrumbs %>
21
21
  <% elsif navigation.content_is_tagged_to_a_live_taxon? %>
22
- <!-- Rendering taxonomy breadcrumbs because the page is tagged to live taxons -->
22
+ <%# Rendering taxonomy breadcrumbs because the page is tagged to live taxons %>
23
23
  <%= render 'govuk_publishing_components/components/breadcrumbs',
24
24
  breadcrumbs: navigation.taxon_breadcrumbs[:breadcrumbs],
25
25
  collapse_on_mobile: true %>
26
26
  <% elsif navigation.breadcrumbs.any? %>
27
- <!-- Rendering parent-based breadcrumbs because no browse, no related links, no live taxons -->
27
+ <%# Rendering parent-based breadcrumbs because no browse, no related links, no live taxons %>
28
28
  <%= render 'govuk_publishing_components/components/breadcrumbs', breadcrumbs: navigation.breadcrumbs %>
29
29
  <% else %>
30
- <!-- Not rendering any breadcrumbs because there aren't any -->
30
+ <%# Not rendering any breadcrumbs because there aren't any %>
31
31
  <% end %>
32
32
  </div>
@@ -0,0 +1,10 @@
1
+ <% navigation = GovukPublishingComponents::Presenters::ContextualNavigation.new(content_item, request) %>
2
+
3
+ <% unless navigation.content_tagged_to_current_step_by_step? %>
4
+ <div class="gem-c-contextual-footer">
5
+ <%# Rendering related navigation because no step by step list %>
6
+ <%= render 'govuk_publishing_components/components/related_navigation',
7
+ content_item: content_item,
8
+ context: :footer %>
9
+ </div>
10
+ <% end %>
@@ -2,29 +2,20 @@
2
2
 
3
3
  <div class="gem-c-contextual-sidebar">
4
4
  <% if navigation.content_tagged_to_a_reasonable_number_of_step_by_steps? %>
5
- <!-- Rendering step by step related items because there are a few but not too many of them -->
5
+ <%# Rendering step by step related items because there are a few but not too many of them %>
6
6
  <%= render 'govuk_publishing_components/components/step_by_step_nav_related', links: navigation.step_nav_helper.related_links %>
7
7
  <% end %>
8
8
 
9
9
  <% if navigation.content_tagged_to_current_step_by_step? %>
10
- <!-- Rendering step by step sidebar because there's 1 step by step list -->
10
+ <%# Rendering step by step sidebar because there's 1 step by step list %>
11
11
  <%= render 'govuk_publishing_components/components/step_by_step_nav', navigation.step_nav_helper.sidebar %>
12
- <% elsif navigation.content_tagged_to_mainstream_browse_pages? %>
13
- <!-- Rendering related navigation sidebar because the page is tagged to mainstream browse -->
14
- <%= render 'govuk_publishing_components/components/related_navigation', content_item %>
15
- <% elsif navigation.content_has_curated_related_items? %>
16
- <!-- Rendering related navigation sidebar because the page has curated related links -->
17
- <%= render 'govuk_publishing_components/components/related_navigation', content_item %>
18
- <% elsif navigation.content_is_tagged_to_a_live_taxon? %>
19
- <!-- Rendering taxonomy sidebar because the page is tagged to live taxons -->
20
- <%= render 'govuk_publishing_components/components/taxonomy_navigation', navigation.taxonomy_sidebar %>
21
12
  <% else %>
22
- <!-- Rendering related navigation sidebar because no browse, no related links, no live taxons -->
23
- <%= render 'govuk_publishing_components/components/related_navigation', content_item %>
13
+ <%# Rendering related navigation sidebar because no step by step list %>
14
+ <%= render 'govuk_publishing_components/components/related_navigation', content_item: content_item, context: :sidebar %>
24
15
  <% end %>
25
16
 
26
17
  <% if navigation.content_tagged_to_other_step_by_steps? %>
27
- <!-- Rendering step by step related items because there are a few but not too many of them -->
18
+ <%# Rendering step by step related items because there are a few but not too many of them %>
28
19
  <%= render 'govuk_publishing_components/components/step_by_step_nav_related', {
29
20
  pretitle: "Also part of",
30
21
  links: navigation.step_nav_helper.also_part_of_step_nav,
@@ -18,9 +18,11 @@
18
18
  <% item[:items].each do |item| %>
19
19
  <% if item[:href] && item[:text] %>
20
20
  <li class="govuk-footer__list-item">
21
- <a class="govuk-footer__link" href="<%= item[:href] %>">
22
- <%= item[:text] %>
23
- </a>
21
+ <%
22
+ attributes = { class: "govuk-footer__link" }.merge(item.fetch(:attributes, {}))
23
+ attributes[:rel] = "noopener" if attributes[:target] == "_blank" && !attributes[:rel]
24
+ %>
25
+ <%= link_to item[:text], item[:href], attributes %>
24
26
  </li>
25
27
  <% end %>
26
28
  <% end %>
@@ -1,13 +1,17 @@
1
1
  <% related_nav_helper = GovukPublishingComponents::Presenters::RelatedNavigationHelper.new(local_assigns) %>
2
2
 
3
- <% if related_nav_helper.anything_to_show? %>
3
+ <% if related_nav_helper.related_navigation? %>
4
4
  <% random = SecureRandom.hex(4) %>
5
5
  <div class="gem-c-related-navigation">
6
- <h2 id="related-nav-related_items-<%= random %>"
7
- class="gem-c-related-navigation__main-heading"
8
- data-track-count="sidebarRelatedItemSection" >
9
- <%= t('components.related_navigation.related_content') %>
10
- </h2>
6
+
7
+ <% if local_assigns[:context] != :footer %>
8
+ <h2 id="related-nav-related_items-<%= random %>"
9
+ class="gem-c-related-navigation__main-heading"
10
+ data-track-count="sidebarRelatedItemSection">
11
+ <%= t("components.related_#{local_assigns[:context]}_navigation.related_content",
12
+ default: t('components.related_navigation.related_content')) %>
13
+ </h2>
14
+ <% end %>
11
15
 
12
16
  <% section_index = 0 %>
13
17
 
@@ -10,10 +10,11 @@ body: |
10
10
  - Parent breadcrumb, which uses the `parent` link of the page with the [breadcrumbs component][breadcrumbs]
11
11
  - Taxon breadcrumb, which uses the `taxons` link of the page with the [breadcrumbs component][breadcrumbs]
12
12
 
13
- It must always used [together with the contextual sidebar][sidebar].
13
+ It must always used [together with the contextual sidebar][sidebar] and [footer].
14
14
 
15
- [preview]: https://govuk-publishing-components.herokuapp.com/contextual-navigation
15
+ [preview]: /contextual-navigation
16
16
  [header]: /component-guide/step_by_step_nav_header
17
+ [footer]: /component-guide/contextual_footer
17
18
  [sidebar]: /component-guide/contextual_sidebar
18
19
  [breadcrumbs]: https://govuk-publishing-components.herokuapp.com/component-guide/breadcrumbs
19
20
  accessibility_criteria: |
@@ -0,0 +1,71 @@
1
+ name: Contextual footer
2
+ description: Footer that shows different things depending on the page
3
+ body: |
4
+ This is a component that calls other components. For more accurate
5
+ preview with real data, see the [contextual navigation preview][preview].
6
+
7
+ It will render the [related navigation component][related_navigation] in the context of a footer if the content item
8
+ is not part of a [step by step][step-by-step].
9
+
10
+ It must always be used [with the contextual breadcrumbs component][contextual_breadcrumbs].
11
+
12
+ [preview]: /contextual-navigation
13
+ [step-by-step]: /component-guide/step_by_step_nav
14
+ [related_navigation]: /component-guide/related_navigation
15
+ [contextual_breadcrumbs]: /component-guide/contextual_breadcrumbs
16
+ accessibility_criteria: |
17
+ Components called by this component must be accessible
18
+ examples:
19
+ default:
20
+ description: Displays contacts, external links, statistical datasets, topical events, topics and world locations.
21
+ data:
22
+ content_item:
23
+ title: "A content item"
24
+ links:
25
+ topics:
26
+ - title: Apprenticeships, 14 to 19 education and training for work
27
+ base_path: /browse/education/find-course
28
+ document_type: topic
29
+ - title: Finding a job
30
+ base_path: /browse/working/finding-job
31
+ document_type: topic
32
+ - title: Apprenticeships
33
+ base_path: /topic/further-education-skills/apprenticeships
34
+ document_type: topic
35
+ topical_events:
36
+ - title: UK-China High-Level People to People Dialogue 2017
37
+ base_path: /government/topical-events/uk-china-high-level-people-to-people-dialogue-2017
38
+ document_type: topical_event
39
+ related:
40
+ - title: Pest Control
41
+ base_path: /pest-control
42
+ document_type: contact
43
+ related_statistical_data_sets:
44
+ - title: International road fuel prices
45
+ base_path: /government/statistical-data-sets/comparisons-of-industrial-and-domestic-energy-prices-monthly-figures
46
+ document_type: statistical_data_set
47
+ - title: Weekly road fuel prices
48
+ base_path: /government/statistical-data-sets/oil-and-petroleum-products-weekly-statistics
49
+ document_type: statistical_data_set
50
+ world_locations:
51
+ - title: South Sudan
52
+ base_path: /world/south-sudan/news
53
+ - title: USA
54
+ base_path: /world/usa/news
55
+ details:
56
+ external_related_links:
57
+ - url: "http://media.slc.co.uk/sfe/1718/ft/sfe_terms_and_conditions_guide_1718_d.pdf"
58
+ title: "Student loans: terms and conditions 2017 to 2018 (PDF, 136KB)"
59
+ - title: The Student Room repaying your student loan
60
+ url: https://www.thestudentroom.co.uk/content.php?r=5967-Repaying-your-student-loan
61
+ with_step_by_step:
62
+ data:
63
+ content_item:
64
+ title: "A content item"
65
+ links:
66
+ part_of_step_navs:
67
+ - title: "Choosing a micropig or micropug: step by step"
68
+ base_path: "/micropigs-vs-micropugs"
69
+ ordered_related_items:
70
+ - title: "Find an apprenticeship"
71
+ base_path: "/apply-apprenticeship"
@@ -1,34 +1,43 @@
1
1
  name: Contextual sidebar
2
2
  description: Sidebar that shows different things depending on the page
3
3
  body: |
4
- This is a complex component that calls other components. For more accurate
4
+ This is a component that calls other components. For more accurate
5
5
  preview with real data, see the [contextual navigation preview][preview].
6
6
 
7
- There are 4 main variants of the component:
7
+ There are 2 variants of the component:
8
8
 
9
9
  - Step by step, which uses the [step by step nav][step-by-step]
10
- - Taxonomy, which uses the new taxonomy in the [taxonomy-sidebar component][taxonomy-sidebar]
11
- - Mainstream, which uses related links in the [related navigation component][related_navigation]
12
- - Related navigation, which uses legacy taxonomies in the [related navigation component][related_navigation]
10
+ - Related navigation, which uses the [related navigation component][related_navigation] in the context of a sidebar
13
11
 
14
12
  It must always be used [with the contextual breadcrumbs component][contextual_breadcrumbs].
15
13
 
16
- [preview]: https://govuk-publishing-components.herokuapp.com/contextual-navigation
14
+ [preview]: /contextual-navigation
17
15
  [step-by-step]: /component-guide/step_by_step_nav
18
16
  [related_navigation]: /component-guide/related_navigation
19
- [taxonomy-sidebar]: https://govuk-publishing-components.herokuapp.com/component-guide/taxonomy_navigation
20
17
  [contextual_breadcrumbs]: /component-guide/contextual_breadcrumbs
21
18
  accessibility_criteria: |
22
19
  Components called by this component must be accessible
23
20
  examples:
24
21
  default:
22
+ description: Display collections, guides, quick links, ordered related items and related mainstream content.
25
23
  data:
26
24
  content_item:
27
25
  title: "A content item"
28
26
  links:
29
27
  ordered_related_items:
30
- - title: "Find an apprenticeship"
31
- base_path: "/apply-apprenticeship"
28
+ - title: Find an apprenticeship
29
+ base_path: /apply-apprenticeship
30
+ - title: Training and study at work
31
+ base_path: /training-study-work-your-rights
32
+ - title: Careers helpline for teenagers
33
+ base_path: /careers-helpline-for-teenagers
34
+ document_collections:
35
+ - title: Recruit an apprentice (formerly apprenticeship vacancies)
36
+ base_path: /government/collections/apprenticeship-vacancies
37
+ document_type: document_collection
38
+ - title: The future of jobs and skills
39
+ base_path: /government/collections/the-future-of-jobs-and-skills
40
+ document_type: document_collection
32
41
  with_step_by_step:
33
42
  data:
34
43
  content_item:
@@ -123,3 +123,20 @@ examples:
123
123
  text: Rhestr o Wasanaethau Cymraeg
124
124
  - href: '/government/organisations/government-digital-service'
125
125
  text: Government Digital Service
126
+
127
+ with_attributes_links:
128
+ data:
129
+ navigation:
130
+ - title: Test Links
131
+ columns: 1
132
+ items:
133
+ - href: 'https://www.gov.uk/government/collections/organisation'
134
+ text: Shows a page in a new window
135
+ attributes:
136
+ target: _blank
137
+ rel: noopener
138
+ - href: 'https://www.gov.uk/corporation-tax'
139
+ text: Shows page in the same window
140
+ attributes:
141
+ data:
142
+ tracking: GTM-123AB
@@ -31,6 +31,59 @@ examples:
31
31
  - title: Apprenticeships
32
32
  base_path: /topic/further-education-skills/apprenticeships
33
33
  document_type: topic
34
+ with_mainstream_browse_pages:
35
+ data:
36
+ links:
37
+ mainstream_browse_pages:
38
+ - title: Driving licences
39
+ base_path: /browse/driving/driving-licences
40
+ document_type: mainstream_browse_page
41
+ - title: Driving tests and learning to drive or ride
42
+ base_path: /browse/driving/learning-to-drive
43
+ document_type: mainstream_browse_page
44
+ with_taxons:
45
+ data:
46
+ links:
47
+ taxons:
48
+ - title: Driving instruction and driving lessons
49
+ base_path: /transport/driving-instruction-and-driving-lessons
50
+ phase: live
51
+ document_type: taxon
52
+ with_curated_topics_and_mainstream_browse_pages:
53
+ description: Currated topics and mainstream browse pages are combined.
54
+ data:
55
+ links:
56
+ mainstream_browse_pages:
57
+ - title: Driving licences
58
+ base_path: /browse/driving/driving-licences
59
+ document_type: mainstream_browse_page
60
+ - title: Driving tests and learning to drive or ride
61
+ base_path: /browse/driving/learning-to-drive
62
+ document_type: mainstream_browse_page
63
+ topics:
64
+ - title: Cars
65
+ base_path: /topic/driving-tests-and-learning-to-drive/car
66
+ document_type: topic
67
+ with_curated_topics_and_mainstream_browse_pages_and_taxons:
68
+ description: Currated topics and mainstream browse pages take precedence over the sidewide topic taxonomy.
69
+ data:
70
+ links:
71
+ mainstream_browse_pages:
72
+ - title: Driving licences
73
+ base_path: /browse/driving/driving-licences
74
+ document_type: mainstream_browse_page
75
+ - title: Driving tests and learning to drive or ride
76
+ base_path: /browse/driving/learning-to-drive
77
+ document_type: mainstream_browse_page
78
+ taxons:
79
+ - title: Driving instruction and driving lessons
80
+ base_path: /transport/driving-instruction-and-driving-lessons
81
+ phase: live
82
+ document_type: taxon
83
+ topics:
84
+ - title: Cars
85
+ base_path: /topic/driving-tests-and-learning-to-drive/car
86
+ document_type: topic
34
87
  with_collections:
35
88
  data:
36
89
  links:
@@ -4,11 +4,16 @@
4
4
  data-module="gem-toggle">
5
5
 
6
6
  <% unless section_title === "related_items" %>
7
- <h3 id="related-nav-<%= section_title %>-<%= random %>"
8
- data-track-count="sidebarRelatedItemSection"
9
- class="<%= related_nav_helper.section_css_class("gem-c-related-navigation__sub-heading", section_title) %>">
10
- <%= related_nav_helper.construct_section_heading(section_title) %>
11
- </h3>
7
+ <%=
8
+ heading_class = related_nav_helper.section_css_class("gem-c-related-navigation__sub-heading", section_title)
9
+ heading_data = { 'track-count' => related_nav_helper.section_data_track_count(:related_item_section) }
10
+ heading_id = "related-nav-#{section_title}-#{random}"
11
+ heading_level = related_nav_helper.section_heading_level
12
+
13
+ content_tag(heading_level, id: heading_id, class: heading_class, data: heading_data) do
14
+ related_nav_helper.construct_section_heading(section_title)
15
+ end
16
+ %>
12
17
  <% end %>
13
18
 
14
19
  <ul class="gem-c-related-navigation__link-list" data-module="track-click">
@@ -42,6 +42,11 @@ en:
42
42
  topics: "Explore the topic"
43
43
  topical_events: "Topical event"
44
44
  world_locations: "World locations"
45
+ related_footer_navigation:
46
+ collections: "Collections"
47
+ policies: "Policies"
48
+ statistical_data_sets: "Statistical data sets"
49
+ topical_events: "Topical events"
45
50
  step_by_step_nav:
46
51
  show: "Show"
47
52
  hide: "Hide"
@@ -53,9 +58,3 @@ en:
53
58
  email_signup_link_text: "Get email alerts"
54
59
  feed_link_text: "Subscribe to feed"
55
60
  subscriptions: "Subscriptions"
56
- taxonomy_navigation:
57
- collections: "Collection"
58
- related_content: "Related content"
59
- statistical_data_sets: "Statistical data set"
60
- topical_events: "Topical event"
61
- world_locations: "World locations"
@@ -11,8 +11,6 @@ require "govuk_publishing_components/presenters/content_breadcrumbs_based_on_tax
11
11
  require "govuk_publishing_components/presenters/services"
12
12
  require "govuk_publishing_components/presenters/select"
13
13
  require "govuk_publishing_components/presenters/meta_tags"
14
- require "govuk_publishing_components/presenters/taxonomy_navigation"
15
- require "govuk_publishing_components/presenters/curated_taxonomy_sidebar_links"
16
14
  require "govuk_publishing_components/presenters/content_item"
17
15
  require "govuk_publishing_components/presenters/translation_nav_helper"
18
16
  require "govuk_publishing_components/presenters/subscription_links_helper"