Input, Input Message - Provide valid, concise, and meaningful alternative text for image buttons - (2036569942) #7793
Labels
a11y
Issues related to Accessibility fixes or improvements.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
estimate - 2
Small fix or update, may require updates to tests.
p - high
Issue should be addressed in the current milestone, impacts component or core functionality
Violation:
Provide valid, concise, and meaningful alternative text for image buttons
WCAG Reference:
Severity:
6
Media Type:
Forms
Areas for Remediation:
Title: Input, Input Message - Provide valid, concise, and meaningful alternative text for image buttons - (2036569942)
Module: Input, Input Message
Issue
There are image buttons present besides the below mentioned input fields that do not provide an accessible name. Examples include:
Vertical:
Vertical with Prefix and Suffix text:
Horizontal:
Horizontal with Prefix and Suffix text:
Number input error message
User Impact
Without meaningful alternative text, any information conveyed by these image buttons will not be conveyed to screen reader users and they will be announced as unlabeled buttons.
Code Reference
Suggestion
Ensure that image buttons provide meaningful alternative text. This can be achieved by providing any of the following:- an alt attribute for input type image
<img>
elements<title>
element for svg images (the svg element should provide an aria-labelledby attribute that maps to the id attribute value of the nested title)Compliant Code Example
Additional Resources:
The text was updated successfully, but these errors were encountered: