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

Don't copy the govuk frontend toolkit images to an icons subfolder #223

Merged

Conversation

gemmaleigh
Copy link
Contributor

@gemmaleigh gemmaleigh commented May 12, 2016

Remove the icons subfolder.

These assets are now copied to /public/images, so the folder structure for
these assets is the same as that of the govuk frontend toolkit's images folder.

For the govuk-elements-rails gem, which uses the govuk_frontend_toolkit gem, the path to the image assets will be the same.

cc. @robinwhittleton @robmckinnon.

Remove the icons subfolder.

These assets are now copied /public/images, so the folder structure for
these assets is the same as that of the govuk frontend toolkit.
This is no longer required as all assets from the govuk frontend
toolkit are copied to /public/images rather than /public/images/icons.

This is so that the folder structure is the same as the govuk frontend
toolkit.
@gemmaleigh gemmaleigh changed the title Don't copy the govuk frontend toolkit images to an icons subfolder [Do not merge] Don't copy the govuk frontend toolkit images to an icons subfolder May 13, 2016
@gemmaleigh gemmaleigh changed the title [Do not merge] Don't copy the govuk frontend toolkit images to an icons subfolder Don't copy the govuk frontend toolkit images to an icons subfolder May 13, 2016
@gemmaleigh
Copy link
Contributor Author

I'm going to merge this, as it'll fix the issue with the current broken external links on Heroku.

There's a further issue, which is that govuk elements isn't importing the URL helpers from the toolkit, but is setting a fallback path to public/images/ which may be interfering with anyone using the URL helpers.

@gemmaleigh gemmaleigh merged commit 01a0aa6 into master May 13, 2016
gemmaleigh added a commit that referenced this pull request May 25, 2016
# 1.2.0

- Add MIT License (PR #236)
- Create latest release branch as an alias of the latest release (PR
#232)
- Create new app to preview govuk elements sass releases (PR #219)
- Fix the summary arrow in recent Firefox (PR #227)
- Remove button padding overriding the govuk_frontend_toolkit (PR #230)
- Don't copy the govuk_frontend_toolkit's images into an icons folder
(PR #223)
- Fix path for rails and node environments (PR #234)
  - Import the govuk_frontend_toolkit url-helpers partial
  - If image-url is not defined (if we are not in a Rails environment),
then set a path to /public/images
gemmaleigh added a commit that referenced this pull request May 25, 2016
# 1.2.0

- Add MIT License (PR #236)
- Create latest release branch as an alias of the latest release (PR
#232)
- Create new app to preview govuk elements sass releases (PR #219)
- Fix the summary arrow in recent Firefox (PR #227)
- Remove button padding overriding the govuk_frontend_toolkit (PR #230)
- Don't copy the govuk_frontend_toolkit's images into an icons folder
(PR #223)
- Fix path for rails and node environments (PR #234)
  - Import the govuk_frontend_toolkit url-helpers partial
  - If image-url is not defined (if we are not in a Rails environment),
then set a path to /public/images
robinwhittleton pushed a commit that referenced this pull request May 26, 2016
# 1.2.0

- Add MIT License (PR #236)
- Create latest release branch as an alias of the latest release (PR
#232)
- Create new app to preview govuk elements sass releases (PR #219)
- Fix the summary arrow in recent Firefox (PR #227)
- Remove button padding overriding the govuk_frontend_toolkit (PR #230)
- Don't copy the govuk_frontend_toolkit's images into an icons folder
(PR #223)
- Fix path for rails and node environments (PR #234)
  - Import the govuk_frontend_toolkit url-helpers partial
  - If image-url is not defined (if we are not in a Rails environment),
then set a path to /public/images
- Fix the skip link in Safari (PR #225)
@robinwhittleton robinwhittleton mentioned this pull request May 26, 2016
@gemmaleigh gemmaleigh deleted the remove-icons-subfolder-for-govuk-frontend-toolkit-icons branch June 2, 2016 12:30
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.

1 participant