diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index 7817dc3a8..d91f10fb3 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -7,14 +7,4 @@ $govuk-new-link-styles: true; // not needed here. $govuk-include-default-font-face: false; -@import "govuk_publishing_components/govuk_frontend_support"; -@import "govuk_publishing_components/components/back-link"; -@import "govuk_publishing_components/components/character-count"; -@import "govuk_publishing_components/components/details"; -@import "govuk_publishing_components/components/document-list"; -@import "govuk_publishing_components/components/error-summary"; -@import "govuk_publishing_components/components/fieldset"; -@import "govuk_publishing_components/components/inset-text"; -@import "govuk_publishing_components/components/panel"; -@import "govuk_publishing_components/components/radio"; -@import "govuk_publishing_components/components/warning-text"; + diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index d65e58dd3..4b526dc89 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,12 +1,4 @@ - - - - - <%= stylesheet_link_tag 'application', :media => "all", integrity: false %> - <%= yield :title %> - GOV.UK - <%= yield :section_meta_tags %> - - +<% content_for :body do %>
<%= render 'govuk_publishing_components/components/breadcrumbs', { breadcrumbs: @breadcrumbs, @@ -23,5 +15,20 @@
<%= javascript_include_tag 'test-dependencies' if Rails.env.test? %> <%= javascript_include_tag 'application', integrity: false %> +<% end %> + + + + + <%= stylesheet_link_tag 'application', :media => "all", integrity: false %> + <%= + render_component_stylesheets + %> + <%= yield :title %> - GOV.UK + <%= yield :section_meta_tags %> + + + <%= yield :body %> +