-
Notifications
You must be signed in to change notification settings - Fork 614
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
feat(checkout): CHECKOUT-7125 Adding additional aria attributes to coupon code and gift certificate buttons on the cart page #2391
feat(checkout): CHECKOUT-7125 Adding additional aria attributes to coupon code and gift certificate buttons on the cart page #2391
Conversation
77cf6f4
to
70c4db8
Compare
70c4db8
to
a688cc7
Compare
a688cc7
to
f294801
Compare
f294801
to
6a5519a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
…upon code and gift certificate buttons on the cart page
6a5519a
to
4fd6904
Compare
aria-hidden should not be added to elements that are displayed none; https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-hidden |
Also, aria-labels should contain the visible label. I would recommend not using aria-labels here and instead change the visible text. |
good points @mattcoy-arcticleaf |
@mattcoy-arcticleaf since we don't have suitable visible content on the UI to refer to, we have to use the |
@bc-yevhenii-buliuk , the submit input tag can be changed to a button tag and then you can place 1 or more spans inside. |
@mattcoy-arcticleaf yes, we can change the submit input to the button tag and add a span inside, but it will change the UI, the content inside the span will stretch the button width, which is not intended by the design. |
What?
Adding aria-hidden attributes to coupon code and gift certificate containers on the cart page. Also adding aria labels to coupon code and gift certificate apply buttons on the cart page.
Requirements
Screenshots (if appropriate)
After changes: