Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Improvements to the product buying form in the user menu:
There are no visual changes, except for some edge cases.
Instead of creating a new form for each product, we create a single form with a custom submit button for each product. Because we don't have to create 1000 forms, we save a lot of bandwidth. This also contributes to accessibility, since the browser can assert that this is a single form with different options, rather than a thousand separate forms that might not be related to each other.
Instead of using a link that invokes JS to submit a form, we use a button that natively submits the form. This is a big accessibility improvement, as it is now clear that the button is related to the form, and it is clear that the product name in the button is highly relevant.