Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GOV.UK Frontend deprecation warning for component-guide print stylesheet #1961

Merged
merged 1 commit into from
Mar 8, 2021

Conversation

kevindew
Copy link
Member

@kevindew kevindew commented Mar 8, 2021

This file imports "govuk/base" which is required to resolve a GOV.UK Frontend warning. This is attempt 2 following #1934, this tries to be a more modest fix.

Before:

I, [2021-03-08T10:25:39.692458 #79055]  INFO -- : Writing /Users/kevindew/govuk/govuk_publishing_components/spec/dummy/public/assets/component_guide/visual-regression-7a6fbecb638d5f96b24d97212b0044b0b3d9e195c0ea5543612dba4347f5ec2e.js.gz
WARNING: Importing items from the core layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.
         on line 2:3 of node_modules/govuk-frontend/govuk/core/_links.scss
         from line 1:9 of node_modules/govuk-frontend/govuk/core/_all.scss
         from line 4:9 of app/assets/stylesheets/govuk_publishing_components/component_support.scss
         from line 5:9 of app/assets/stylesheets/govuk_publishing_components/components/print/_accordion.scss
         from line 6:9 of app/assets/stylesheets/govuk_publishing_components/_all_components_print.scss
         from line 1:9 of app/assets/stylesheets/component_guide/print.scss

I, [2021-03-08T10:25:41.428470 #79055]  INFO -- : Writing /Users/kevindew/govuk/govuk_publishing_components/spec/dummy/public/assets/component_guide/print-a0002005ec52f551aa28aa9e421e2cd6d1ab9c8cc06f4c1b7b50abd92dada192.css
I, [2021-03-08T10:25:41.428689 #79055]  INFO -- : Writing /Users/kevindew/govuk/govuk_publishing_components/spec/dummy/public/assets/component_guide/print-a0002005ec52f551aa28aa9e421e2cd6d1ab9c8cc06f4c1b7b50abd92dada192.css.gz

After:

I, [2021-03-08T10:26:16.011247 #79155]  INFO -- : Writing /Users/kevindew/govuk/govuk_publishing_components/spec/dummy/public/assets/component_guide/visual-regression-7a6fbecb638d5f96b24d97212b0044b0b3d9e195c0ea5543612dba4347f5ec2e.js.gz
I, [2021-03-08T10:26:17.598856 #79155]  INFO -- : Writing /Users/kevindew/govuk/govuk_publishing_components/spec/dummy/public/assets/component_guide/print-a0002005ec52f551aa28aa9e421e2cd6d1ab9c8cc06f4c1b7b50abd92dada192.css
I, [2021-03-08T10:26:17.599218 #79155]  INFO -- : Writing /Users/kevindew/govuk/govuk_publishing_components/spec/dummy/public/assets/component_guide/print-a0002005ec52f551aa28aa9e421e2cd6d1ab9c8cc06f4c1b7b50abd92dada192.css.gz

@bevanloon bevanloon temporarily deployed to govuk-publis-attempt-2--jqgana March 8, 2021 10:56 Inactive
@kevindew
Copy link
Member Author

kevindew commented Mar 8, 2021

@andysellick / @alex-ju any chance I could get your thoughts on this alternative to #1934 ?

Copy link
Contributor

@alex-ju alex-ju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems sensible to me, Kevin. Don't forget the changelog entry.

@kevindew kevindew force-pushed the attempt-2-at-govuk-frontend-warning branch from 1fbce93 to 0312306 Compare March 8, 2021 14:48
@kevindew kevindew changed the title Use govuk_frontend_support in _all_components_print Fix GOV.UK Frontend deprecation warning for component-guide print stylesheet Mar 8, 2021
@bevanloon bevanloon temporarily deployed to govuk-publis-attempt-2--jqgana March 8, 2021 14:48 Inactive
This file imports "govuk/base" which is required to resolve a GOV.UK
Frontend warning, as we are currently relying on implicit imports that
will be removed in the next major release.

Before:

```
I, [2021-03-08T10:25:39.692458 #79055]  INFO -- : Writing /Users/kevindew/govuk/govuk_publishing_components/spec/dummy/public/assets/component_guide/visual-regression-7a6fbecb638d5f96b24d97212b0044b0b3d9e195c0ea5543612dba4347f5ec2e.js.gz
WARNING: Importing items from the core layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.
         on line 2:3 of node_modules/govuk-frontend/govuk/core/_links.scss
         from line 1:9 of node_modules/govuk-frontend/govuk/core/_all.scss
         from line 4:9 of app/assets/stylesheets/govuk_publishing_components/component_support.scss
         from line 5:9 of app/assets/stylesheets/govuk_publishing_components/components/print/_accordion.scss
         from line 6:9 of app/assets/stylesheets/govuk_publishing_components/_all_components_print.scss
         from line 1:9 of app/assets/stylesheets/component_guide/print.scss

I, [2021-03-08T10:25:41.428470 #79055]  INFO -- : Writing /Users/kevindew/govuk/govuk_publishing_components/spec/dummy/public/assets/component_guide/print-a0002005ec52f551aa28aa9e421e2cd6d1ab9c8cc06f4c1b7b50abd92dada192.css
I, [2021-03-08T10:25:41.428689 #79055]  INFO -- : Writing /Users/kevindew/govuk/govuk_publishing_components/spec/dummy/public/assets/component_guide/print-a0002005ec52f551aa28aa9e421e2cd6d1ab9c8cc06f4c1b7b50abd92dada192.css.gz
```

After:

```
I, [2021-03-08T10:26:16.011247 #79155]  INFO -- : Writing /Users/kevindew/govuk/govuk_publishing_components/spec/dummy/public/assets/component_guide/visual-regression-7a6fbecb638d5f96b24d97212b0044b0b3d9e195c0ea5543612dba4347f5ec2e.js.gz
I, [2021-03-08T10:26:17.598856 #79155]  INFO -- : Writing /Users/kevindew/govuk/govuk_publishing_components/spec/dummy/public/assets/component_guide/print-a0002005ec52f551aa28aa9e421e2cd6d1ab9c8cc06f4c1b7b50abd92dada192.css
I, [2021-03-08T10:26:17.599218 #79155]  INFO -- : Writing /Users/kevindew/govuk/govuk_publishing_components/spec/dummy/public/assets/component_guide/print-a0002005ec52f551aa28aa9e421e2cd6d1ab9c8cc06f4c1b7b50abd92dada192.css.gz
```
@kevindew kevindew force-pushed the attempt-2-at-govuk-frontend-warning branch from 0312306 to 9fc27cf Compare March 8, 2021 14:49
@bevanloon bevanloon temporarily deployed to govuk-publis-attempt-2--jqgana March 8, 2021 14:49 Inactive
@kevindew
Copy link
Member Author

kevindew commented Mar 8, 2021

Thanks @alex-ju - I've updated the changelog now

@kevindew kevindew merged commit d225947 into master Mar 8, 2021
@kevindew kevindew deleted the attempt-2-at-govuk-frontend-warning branch March 8, 2021 16:09
DilwoarH pushed a commit that referenced this pull request Mar 9, 2021
Includes:
* Remove lists from summary action links ([PR #1956](#1956))
* Fix GOV.UK Frontend deprecation warning for component-guide print stylesheet ([PR #1961](#1961))
* Update search box button ([PR #1957](#1957))
* Adds Reorderable lists component ([PR #1905](#1905))
@DilwoarH DilwoarH mentioned this pull request Mar 9, 2021
This was referenced Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants