govuk_publishing_components 21.38.4 → 21.38.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c10f777eb9ab60586ea5271dee6d73fc73d23e5886ca911a6860f73d2771664e
4
- data.tar.gz: b3432a28b3f6e801197d9c5a51c42d35d98b46f9484ebcb54be6d7f502a741c0
3
+ metadata.gz: 4a7edfd107e1b914f95537b4f3ecf8cceefaae7900ff94d81296bdc60866c5ed
4
+ data.tar.gz: 736a87969e9c91c34d4f2abe47b9b9cf4e0f859724c9f839122376a62bedc1cc
5
5
  SHA512:
6
- metadata.gz: d5a8568a50c23be001cc1fde17691424fcebb53eda681cf6162d754989d36703cd47a9d4133e61089b82b5edac54cd5208004c906d628cc8a30bd44e3f19f7d7
7
- data.tar.gz: 05647ccb2a1fa0a206488a77dec0110aaa5cd42f502215fd920e36d014c98655ca739f662e25306e1e9fea58dedafe0d8e3ac842aa44f8ce0bfb36780b59c48c
6
+ metadata.gz: 883f64ccd919032503da65cb84b58f72d9f31e6e8a7f8f9cd485383690fd5b9f4fddd6bdb2557431c2bcc7334e65dd00713810f7d8002f02fa793289ba22fc29
7
+ data.tar.gz: e335ecfbbee31121c58a070e173db9c978132d8522f464c660d3648eb77ec90a16efd19565bdd932df06dd2d626d3a9e0e9643f7814c8f5b0c520adbb16872a6
@@ -58,7 +58,7 @@ module GovukPublishingComponents
58
58
  components = components.flatten.uniq.sort
59
59
 
60
60
  components.map { |component|
61
- "@import 'govuk_publishing_components/components/#{print_path}_#{component.gsub('_', '-')}';" if component_has_sass_file(component.gsub("_", "-"), print_styles)
61
+ "@import 'govuk_publishing_components/components/#{print_path}#{component.gsub('_', '-')}';" if component_has_sass_file(component.gsub("_", "-"), print_styles)
62
62
  }.compact.uniq.sort.join("\n").squeeze("\n").prepend(additional_files)
63
63
  end
64
64
 
@@ -0,0 +1,4 @@
1
+ <%= stylesheet_link_tag "#{GovukPublishingComponents::Config.application_stylesheet}" %>
2
+ <% if GovukPublishingComponents::Config.application_print_stylesheet %>
3
+ <%= stylesheet_link_tag "#{GovukPublishingComponents::Config.application_print_stylesheet}", media: "print" %>
4
+ <% end %>
@@ -1,4 +1,10 @@
1
1
  <% content_for :title, "#{@component_example.name} example - #{@component_doc.name} component" %>
2
+ <% content_for :application_stylesheet do %>
3
+ <% if @component_doc.source == "application" %>
4
+ <%= render 'application_stylesheet' %>
5
+ <% end %>
6
+ <% end %>
7
+
2
8
  <%= render 'govuk_publishing_components/components/title', title: @component_example.name, context: "#{@component_doc.name} example", margin_top: 0 %>
3
9
 
4
10
  <div class="component-show">
@@ -1,3 +1,9 @@
1
+ <% content_for :application_stylesheet do %>
2
+ <% if @component_doc.source == "application" %>
3
+ <%= render 'application_stylesheet' %>
4
+ <% end %>
5
+ <% end %>
6
+
1
7
  <% @component_examples.each do |example| %>
2
8
  <div class="component-guide-preview-page">
3
9
  <% if @component_examples.length > 1 %>
@@ -1,4 +1,10 @@
1
1
  <% content_for :title, "#{@component_doc.name} component" %>
2
+ <% content_for :application_stylesheet do %>
3
+ <% if @component_doc.source == "application" %>
4
+ <%= render 'application_stylesheet' %>
5
+ <% end %>
6
+ <% end %>
7
+
2
8
  <%= render 'govuk_publishing_components/components/title', title: @component_doc.name, context: "Component", margin_top: 0; %>
3
9
 
4
10
  <div class="component-show">
@@ -16,6 +16,7 @@
16
16
  <%= csrf_meta_tags %>
17
17
  <%= favicon_link_tag "govuk_publishing_components/favicon-production.png" %>
18
18
 
19
+ <%= yield :application_stylesheet %>
19
20
  <%= stylesheet_link_tag "component_guide/application", media: "screen" %>
20
21
  <%= stylesheet_link_tag "component_guide/print", media: "print" %>
21
22
 
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "21.38.4".freeze
2
+ VERSION = "21.38.5".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 21.38.4
4
+ version: 21.38.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-06 00:00:00.000000000 Z
11
+ date: 2020-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gds-api-adapters
@@ -572,6 +572,7 @@ files:
572
572
  - app/models/govuk_publishing_components/component_docs.rb
573
573
  - app/models/govuk_publishing_components/component_example.rb
574
574
  - app/models/govuk_publishing_components/shared_accessibility_criteria.rb
575
+ - app/views/govuk_publishing_components/component_guide/_application_stylesheet.html.erb
575
576
  - app/views/govuk_publishing_components/component_guide/component_doc/_call.html.erb
576
577
  - app/views/govuk_publishing_components/component_guide/component_doc/_component.html.erb
577
578
  - app/views/govuk_publishing_components/component_guide/component_doc/_component_output.html.erb