Skip to content

Commit

Permalink
Update the ccs frontend helpers package
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-s-ccs committed Mar 14, 2024
1 parent e2301a8 commit bad468d
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 28 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ gem 'aws-sdk-ssm', '~> 1.162.0'
gem 'rack-attack', '~> 6.7.0'

# GOV.UK Frontend helpers
gem 'ccs-frontend_helpers', '~> 0.1.2'
gem 'ccs-frontend_helpers', '~> 0.2.0'

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ GEM
racc
builder (3.2.4)
byebug (11.1.3)
ccs-frontend_helpers (0.1.2)
ccs-frontend_helpers (0.2.0)
rails (>= 6.0)
concurrent-ruby (1.2.3)
connection_pool (2.4.1)
Expand Down Expand Up @@ -396,7 +396,7 @@ DEPENDENCIES
brakeman (~> 6.1.2)
byebug (~> 11.1.3)
canonical-rails!
ccs-frontend_helpers (~> 0.1.2)
ccs-frontend_helpers (~> 0.2.0)
dotenv-rails (~> 3.1.0)
i18n-tasks (~> 1.0.13)
jbuilder (~> 2.11, >= 2.11.5)
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/packs/govuk.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
require("govuk-frontend/govuk/all").initAll()
require.context('govuk-frontend/govuk/assets/images', true)
require("govuk-frontend/dist/govuk/all").initAll()
require.context('govuk-frontend/dist/govuk/assets/images', true)
import "./stylesheets/govuk.scss"
10 changes: 4 additions & 6 deletions app/javascript/packs/stylesheets/govuk.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700");

$govuk-assets-path: "~govuk-frontend/govuk/assets/";
$govuk-assets-path: "~govuk-frontend/dist/govuk/assets/";
$govuk-button-background-colour: #007e8a;

@import "govuk-frontend/govuk/all";
@import "govuk-frontend/dist/govuk/all";
@import "accessible-autocomplete";

$ccs-border-colour: #b1b4b6;
Expand Down Expand Up @@ -77,10 +77,8 @@ $ccs-footer-columns-to-rows-point: 501px;
// alphagov/govuk_template includes a specific a:link:focus selector
// designed to make unvisited links a slightly darker blue when focussed, so
// we need to override the text colour for that combination of selectors.
@include govuk-compatibility(govuk_template) {
&:link:focus {
@include govuk-text-colour;
}
&:link:focus {
@include govuk-text-colour;
}
}

Expand Down
10 changes: 0 additions & 10 deletions app/views/layouts/_logo.html.erb

This file was deleted.

3 changes: 0 additions & 3 deletions app/views/layouts/_logotype.html.erb

This file was deleted.

2 changes: 0 additions & 2 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="theme-color" content="blue" />

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

<link rel="shortcut icon" sizes="16x16 32x32 48x48" href="<%= asset_pack_url('media/images/favicon.ico') %>" type="image/x-icon" />
<link rel="mask-icon" href="<%= asset_pack_url('media/images/govuk-mask-icon.svg') %>" color="blue">
<link rel="apple-touch-icon" sizes="180x180" href="<%= asset_pack_url('media/images/govuk-apple-touch-icon-180x180.png') %>">
Expand Down
2 changes: 0 additions & 2 deletions app/views/layouts/error.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="theme-color" content="blue" />

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

<link rel="shortcut icon" sizes="16x16 32x32 48x48" href="<%= asset_pack_url('media/images/favicon.ico') %>" type="image/x-icon" />
<link rel="mask-icon" href="<%= asset_pack_url('media/images/govuk-mask-icon.svg') %>" color="blue">
<link rel="apple-touch-icon" sizes="180x180" href="<%= asset_pack_url('media/images/govuk-apple-touch-icon-180x180.png') %>">
Expand Down

0 comments on commit bad468d

Please sign in to comment.