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 path for rails and node environments #234

Merged
merged 2 commits into from
May 23, 2016

Conversation

gemmaleigh
Copy link
Contributor

Check to see if the image-url function exists

If image-url is not defined (if we are not in a Rails environment), set
a path to /public/images.

This will fix the issue where elements is overriding $path for the govuk_elements_rails gem.

cc. @robinwhittleton @dsingleton.

If image-url is not defined (if we are not in a Rails environment), set
a path to /public/images.
@robinwhittleton
Copy link
Contributor

Checked this with a custom govuk_elements_rails build and it works fine.

@robinwhittleton robinwhittleton merged commit 07b775e into master May 23, 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 fix-path-for-rails-and-node-environments branch June 2, 2016 12:30
gemmaleigh added a commit that referenced this pull request Aug 17, 2016
https://github.com/alphagov/govuk_template/blob/master/CHANGELOG.md

- Remove gov.uk prefix from relative links when printing (PR #234)
- Fix a .visually-hidden bug on GOV.UK (PR #177)
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