Closed
Description
Magento_CheckoutAgreements places checkboxes into checkout to accept the respective terms and conditions. However, the html tag for the checkbox appears for each payment method with the same html id. It is bad practice to have the same html id multiple times and also introduces problems with css customization for these boxes which relies on unique ids.
Preconditions
- Install Magento 2.1
Steps to reproduce
- Create a Term and Condition under Stores -> Terms and Conditions
- Activate Terms and Conditions under Stores -> SALES -> Checkout -> Enable Terms and Conditions
- Enable a second payment method e.g. Bank Transfer Payment
- Got through checkout process to Review & Payment
- Inspect HTML of checkbox tag for configured term
Expected result
- Each input field of type checkbox should have a unique html id
Actual result
- HTML contains 2 input fields of type checkbox with same id
agreement_1