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

Add support for input type=submit #24

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

frankieroberto
Copy link
Contributor

Whilst the <button> element is the preferred way to create buttons nowadays, <input type="submit"> is still supported, including by govuk-frontend.

For this reason, we should continue to support it with the helper, to avoid throwing unnecessary errors.

Fixes #21

Whilst the `<button>` element is the preferred way to create buttons nowadays, `<input type="submit">` is still supported, including by `govuk-frontend`.

For this reason, we should continue to support it with the helper, to avoid throwing unnecessary errors.

Fixes #21
@frankieroberto frankieroberto merged commit c02d6d6 into main Sep 18, 2023
1 check passed
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.

click_govuk_button should work with <input type="submit">
1 participant