-
Notifications
You must be signed in to change notification settings - Fork 327
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
Add an icon next to an input using the govukInput macro #924
Comments
if we added
not sure this is much better than using plain html Position of the |
I guess one pseudo code could be: {% call fieldset() %}
{{ label() }}
{{ hint() }}
{{ input() }}
<span class="govuk-!-display-inline-block" style="vertical-align: middle; height: 40px;">
<img alt="image of the back of a bank card" src="https://png.icons8.com/ios/1600/bank-card-back-side.png" style="height: 40px;">
</span>
{% endcall %} Of course this would depend on the components being less coupled |
yeah that's the alternative. sure, no need to specify classes. |
I'm going to close this one since we merged support for custom before/after content today 🎉 |
I was trying to replicate this design with the Input macro:
In the end I did this with HTML like this
My expectation was that I would be able to import the label, hint, error and input components separately, add in an additional image and wrap it in
govuk-form-group
- This works, however I was unable to remove the secondgovuk-form-group
that comes with the govukInput macro.The text was updated successfully, but these errors were encountered: