Skip to content

Checkout email input field keeps aria-invalid='true' attribute and value after succesful validation #21573

@svossen

Description

@svossen

Preconditions

I’m seeing this behavior on every Magento2 shop I tested, both in Firefox and Chrome. Even on fresh Magento installations. The specifications for the situation of the attached screenshots are:

  • Magento Open Source 2.3.0
  • Sample Data 100.3.*
  • macOS Mojave 10.14.2
  • PHP 7.1.25
  • MySQL 5.7.24
  • Firefox 66.0b12 (64-bit)

Steps to reproduce

  1. Add product to cart
  2. Go to checkout
  3. Leave email input field empty
  4. Validate form by going to the next step
  5. Enter a valid email address
  6. Validate again by blurring the input field or go to the next step

Expected result

After successful validation, the aria-invalid attribute should be removed or the value should be set to false.

Actual result

The checkout email input field keeps the aria-invalid='true' attribute and value after succesful email validation. The validation error message does gets hidden and the mage-error class does get removed and is replaced by valid. This situation will result in accessibility issues.

Step 3:
screenshot 2019-03-05 at 11 06 25

Step 4:
screenshot 2019-03-05 at 11 06 35

Step 5 and 6:
screenshot 2019-03-05 at 11 06 50

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CheckoutEvent: dmcdindia1Fixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions