You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4bda09f
Browse filesBrowse the repository at this point in the historyBrowse files
Fix#5915: Improve TalkBack content description for concept card links (#6033)
## Explanation
Fix#5915: Improve TalkBack reading for concept card links
This PR updates the accessibility content description for the
`<oppia-noninteractive-skillreview>` custom HTML tag.
Earlier, TalkBack skipped the concept card link values.
Now, TalkBack consistently reads:
“<skill_id> concept card”
This improves the screen-reader experience in:
- Hint section
- Solution section
- Flashback solution section
## What this fixes
TalkBack was not reading concept-card links correctly because the custom
HTML tag did not provide a clear accessibility description.
This PR fixes the issue and makes the content accessible for learners
using screen readers.
## What was changed
Updated `ConceptCardTagHandler.getContentDescription()`
→ Now returns a clean, consistent description using only the`skill_id.`
Updated `SolutionViewModel`
→ Now uses `CustomHtmlContentHandler.getContentDescription() `together
with `ConceptCardTagHandler` to ensure correct accessibility parsing
across hint and solution screens.
Additional note
This PR also includes an auto-format update to
`scripts/assets/kdoc_validity_exemptions.textproto`
generated automatically by ktlint. No functional changes were made.
## Testing done
Tested TalkBack behavior in all places where concept-card links appear:
- Hint section
- Solution section
- Flashback mode
TalkBack now reads the concept card link:
- Exactly once
- In the correct format
- With the correct text
## Ready for review
Screen recording demonstrating TalkBack reading concept card links
correctly in all 3 places:
🔗https://drive.google.com/file/d/1y6pqNhccfw5rjqeOtr_VNsF78jvSTvPN/view?usp=sharing
## Essential Checklist
<!-- Please tick the relevant boxes by putting an "x" in them. -->
- [x] The PR title and explanation each start with "Fix #bugnum: " (If
this PR fixes part of an issue, prefix the title with "Fix part of
#bugnum: ...".)
- [x] Any changes to
[scripts/assets](https://github.com/oppia/oppia-android/tree/develop/scripts/assets)
files have their rationale included in the PR explanation.
- [x] The PR follows the [style
guide](https://github.com/oppia/oppia-android/wiki/Coding-style-guide).
- [x] The PR does not contain any unnecessary code changes from Android
Studio
([reference](https://github.com/oppia/oppia-android/wiki/Guidance-on-submitting-a-PR#undo-unnecessary-changes)).
- [x] The PR is made from a branch that's **not** called "develop" and
is up-to-date with "develop".
- [x] The PR is **assigned** to the appropriate reviewers
([reference](https://github.com/oppia/oppia-android/wiki/Guidance-o-submitting-a-PR#clarification-regarding-assignees-and-reviewers-section)).
0 commit comments