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: button usage for links #355

Merged
merged 5 commits into from
Jul 27, 2024
Merged

fix: button usage for links #355

merged 5 commits into from
Jul 27, 2024

Conversation

bumi
Copy link
Contributor

@bumi bumi commented Jul 26, 2024

Button tags in forms submit the form.
This means clicking the "Buy Bitcoin" link did not open the link but actually submit the form. According to the HTML spec a button tag must also not be nested into a hyperlink.

This PR removes those links from the form and uses hyperlinks with button styles (instead of a button tag)

note: I have no idea about those react elements/buttons

Button tags in forms submit the form.
This means clicking the "Buy Bitcoin" link did not open the link but actually submit the form.
According to the HTML spec a button tag must also not be nested into a hyperlink.
@bumi bumi requested a review from rolznz July 26, 2024 21:59
Copy link
Contributor

@rolznz rolznz left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this! tACK

@rolznz rolznz merged commit e7fea66 into master Jul 27, 2024
8 checks passed
@rolznz rolznz deleted the fix-link-button-usage branch July 27, 2024 06:19
@bumi
Copy link
Contributor Author

bumi commented Jul 27, 2024

there are some more buttons like this that we probably also should fix and try to have valid HTML.

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.

2 participants