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

Allow custom image and font URL helpers #733

Merged
merged 3 commits into from
May 30, 2018

Conversation

36degrees
Copy link
Contributor

@36degrees 36degrees commented May 30, 2018

Allow users to set custom functions to resolve image and font urls.

Proposing this as a solution to #730.

Closes #730

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-733 May 30, 2018 08:28 Inactive
@36degrees 36degrees force-pushed the allow-custom-image-font-functions branch from 2c76b14 to d08fe73 Compare May 30, 2018 08:33
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-733 May 30, 2018 08:33 Inactive
@36degrees 36degrees force-pushed the allow-custom-image-font-functions branch from d08fe73 to 89da660 Compare May 30, 2018 08:45
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-733 May 30, 2018 08:45 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-733 May 30, 2018 08:52 Inactive
tijmenb added a commit to alphagov/govuk_publishing_components that referenced this pull request May 30, 2018
@36degrees 36degrees changed the title [DO NOT MERGE] Allow custom image and font URL helpers Allow custom image and font URL helpers May 30, 2018
@36degrees
Copy link
Contributor Author

@tijmenb has tested a version of this in Rails on GOV.UK and it works well.

Ready for review. Will need to be documented, but waiting for #721 to be merged.

Copy link
Contributor

@NickColley NickColley left a comment

Choose a reason for hiding this comment

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

This looks really good.

Do we need to add some more documentation on how to use this?

If someone ran into the problem Tijmen did, where would they look?

Optionally would like an example/ that proves this works with the Rails asset pipeline, but we can consider that later.

@36degrees
Copy link
Contributor Author

I'd expect it to be documented as part of https://github.com/alphagov/govuk-frontend/blob/doc-updates/docs/installation/installing-with-npm.md#import-images, but waiting for that branch to be merged first.

@36degrees
Copy link
Contributor Author

Going to merge this and we can add the docs later.

@36degrees 36degrees merged commit c90b081 into master May 30, 2018
@36degrees 36degrees deleted the allow-custom-image-font-functions branch May 30, 2018 09:38
@NickColley NickColley mentioned this pull request May 31, 2018
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.

Using the Rails asset pipeline for images
3 participants