Skip to content

Commit

Permalink
Configure AssetHelper to load individual stylesheets
Browse files Browse the repository at this point in the history
  • Loading branch information
kashifatcha committed Mar 29, 2023
1 parent 4002f9e commit 3db0b43
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 20 deletions.
12 changes: 1 addition & 11 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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";

25 changes: 16 additions & 9 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<%= stylesheet_link_tag 'application', :media => "all", integrity: false %>
<title><%= yield :title %> - GOV.UK</title>
<%= yield :section_meta_tags %>
</head>
<body>
<% content_for :body do %>
<div id="wrapper">
<%= render 'govuk_publishing_components/components/breadcrumbs', {
breadcrumbs: @breadcrumbs,
Expand All @@ -23,5 +15,20 @@
</div>
<%= javascript_include_tag 'test-dependencies' if Rails.env.test? %>
<%= javascript_include_tag 'application', integrity: false %>
<% end %>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<%= stylesheet_link_tag 'application', :media => "all", integrity: false %>
<%=
render_component_stylesheets
%>
<title><%= yield :title %> - GOV.UK</title>
<%= yield :section_meta_tags %>
</head>
<body>
<%= yield :body %>
</body>
</html>

0 comments on commit 3db0b43

Please sign in to comment.