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

Tidy up stylesheets and JavaScript #2480

Merged
merged 2 commits into from
Jul 7, 2022
Merged

Conversation

injms
Copy link
Contributor

@injms injms commented Jul 6, 2022

What

  • Remove component_support
  • Remove included component stylesheets that are now being served by Static
  • Add accordion and organisation logo print stylesheets

Reduces applications.css from 287.91 kB to 218.13 kB uncompressed.

Reduces application.js from 116.95 kB to 109.60 kB uncompressed.

Why

Component support includes a set of base styles needed by the components; and component styles used by multiple rendering applications are also included in static's stylesheet. Because both of this they don't need to be duplicated in government-frontend.

The missing print stylesheets needed to be included to ensure a consistent print experience across GOV.UK - missing them out of one application would mean that these components would print differently depending on which page was being printed.

Visual changes

None.


⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2480 July 6, 2022 11:46 Inactive
@injms injms marked this pull request as ready for review July 6, 2022 12:07
@injms injms requested a review from andysellick July 7, 2022 08:42
injms added 2 commits July 7, 2022 14:12
Both the accordion and organisation logo components have print stylesheets,
which weren't being included in this app's print stylesheet.
@injms injms force-pushed the tidy-up-stylesheets-and-javascript branch from 54ce303 to 9933e36 Compare July 7, 2022 13:12
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2480 July 7, 2022 13:12 Inactive
@injms injms merged commit 07d9e3b into main Jul 7, 2022
@injms injms deleted the tidy-up-stylesheets-and-javascript branch July 7, 2022 14:15
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