Skip to content

Use govuk-image-url helper for search button image #219

@simonwo

Description

@simonwo

You recently introduced a new search button and it has a cute magnifying glass image. Thanks!

But you haven't passed the image through a call to govuk-image-url which means that downstream users who need finer-grained control over how the image URLs are formed are broken. In my case that means our (Department for International Trade's) documentation currently doesn't display the magnifying glass and we just have an empty box.

(To give some context to why, we override govuk-image-url-function to add a prefix to the root of the URL as we serve our pages from GitHub Pages.)

Would you be able to add that call please? A la:

background-image: govuk-image-url('/images/search-button.png');

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions