microsoft / microsoft/AdaptiveCards
[Adaptive Cards> InputFormwithRTL]: Lang attribute is not defined for the 'Name, Email, Phone and Comments' edit fields.
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 2k
- Forks
- 595
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 1
Description
Target Platforms
UWP
SDK Version
1.0.1.0
Application Name
Adaptive Cards
Problem Description
Test Environment:
Application: Adaptive Cards Universal
OS Build: 24H2 (OS Build 26252.5000)
App Version: 1.0.1.0
Screen Reader: Narrator
Repro Steps:
- Open the Adaptive Cards Universal application.
- Adaptive Card UWP Visualizer screen starts appearing.
- Navigate to InputFormWith RTL.Json button by using Tab key and activate it.
- InputFormwithRTL adaptive card will appear on right sight of the pane.
- Navigate to InputFormwithRTL card by using Tab key.
- Press tab key and navigate to the Arabic button and press enter key to activate it.
- Navigate the control and observe the issue.
Actual Result:
Lang attribute is not defined for the 'Name, Email, Phone and Comments' edit fields. When the screen reader focuses on 'Name' edit field It is announcing as Edit required.
Expected Result:
Lang attribute should be defined for the 'Name, Email, Phone and Comments' edit fields which is presented in different language from the rest of the page. When focus lands on the edit fields, it should announce the control information. It should announce as 'Name edit field required.'
Note:
- Same issue is repro with NVDA screen reader.
- Same issue is repro for the Arabic button as well.
User Experience:
If the language of part is not defined for the content defined in the list, then the user who depends upon Screen Reader for navigation might get affected and hence fail to proper information of the control present on page.
WCAG Reference Link:
https://www.w3.org/WAI/WCAG21/Understanding/language-of-parts.html
Have feedback to share on Bugs ? please tag bug as “A11yRCA” and add your feedback in the comment section.
Screenshots
https://github.com/user-attachments/assets/df0b3257-e11e-4c69-b8b3-fb01a90dbdf4
Card JSON
NA
Sample Code Language
No response
Sample Code
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in the Adaptive Cards Universal application using the InputFormwithRTL card on UWP, with Narrator or NVDA. Inspect how the Arabic Name, Email, Phone, and Comments edit fields are rendered and compare them with the WCAG language-of-parts reference. Done means the fields expose the appropriate language and the screen reader announces their control information correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- accessibility
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100