-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
9.5.1
-
Severity 3 - Minor
-
Issue Summary
The label is missing for input field.
Steps to Reproduce
- Open "Bitbucket" homepage.
- Navigate onto and activate "Projects" link from header section.
- Turn on screen reader and navigate onto the mentioned input field present in main content area via TAB key.
- Inspect the code and observe that the label or "title" attribute is not provided for the form field.
Screenshot
Actual Results
The "Find projects by name" form field does not have the label associated with it, and "title" attribute is not included in it's source code either.
As a result, screen reader users will not understand the purpose of the form fields.
Expected Results
The screen reader should announce the label for the form fields correctly.
Apply the following changes →
- Provide unique and descriptive label for mentioned form field using <label> element.
- Associate the label explicitly with the form field by providing an identical value that is unique from other IDs to the "for" and "id" attributes of the label and form field respectively.
Visible labels help all users to understand the purpose of a form element.
Alternatively, use either hidden label "title" or "aria-label" attribute to convey the purpose of the form field to screen reader users as well as maintain the presentation.
Note: Before implementing the label, please connect with content design team.
Code Snippet
<label for="l1">Find projects</label> <input id="l1" ... placeholder="Find projects by name" class="css-1kxou5n" value="">
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available
Environment
MacBook Pro (16-inch, 2021)
macOS: Sonoma 14.7
Chrome - Version 119.0.6045.105 (Official Build) (64-bit)
Firefox- Version 92.0 (64-bit)
Safari- Version 16.6 (18615.3.12.11.2)
JAWS- Version 2023
NVDA- Version 2021.2
Voiceover - Version Latest
Form Name |
---|