Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make components CSS available to static
- applications include the styles for the components as part of the application's css, but static does not - this means gem components viewed in the static component guide are not styled, which can cause accessibility errors to trigger - adds logic and a couple of stylesheets to pull in the component styles if static is the application
- Loading branch information
1 parent
95061c3
commit b33f3ff
Showing
4 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import "../govuk_publishing_components/all_components"; |
1 change: 1 addition & 0 deletions
1
app/assets/stylesheets/component_guide/all_components_print.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import "../govuk_publishing_components/all_components_print"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
Rails.application.config.assets.precompile += %w(govuk_publishing_components/component_guide.css govuk_publishing_components/search-button.png) | ||
Rails.application.config.assets.precompile += %w( | ||
govuk_publishing_components/component_guide.css | ||
component_guide/all_components.css | ||
component_guide/all_components_print | ||
govuk_publishing_components/search-button.png | ||
) |