microsoft / microsoft/AdaptiveCards
[Android][Accessibility] WCAG 1.4.3: Text elements must have sufficient contrast against the background. (android.widget.TextView)
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 2k
- Forks
- 595
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 1
Description
Issue
Text elements must have sufficient contrast against the background. (ColorContrast)

Similarly w/ TextView's in radio, checklist, and spinner inputs when using a dark host config (e.g. Teams Dark):


Target application
io.adaptivecards.adaptivecardssample
Element path
android.widget.TextView
How to fix
The text element has insufficient contrast of 2.553. Foreground color: #5e92c1, background color: #d7e4ef). Modify the text foreground and/or background colors to provide a contrast ratio of at least 4.5:1 for regular text, or 3:1 for large text (at least 18pt, or 14pt+bold).
Environment
This accessibility issue was found using Accessibility Insights for Android 2020.527.10 (axe-android), a tool that helps find and fix accessibility issues. Get more information & download this tool at http://aka.ms/AccessibilityInsights.
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 io.adaptivecards.adaptivecardssample app with a dark host configuration, focusing on android.widget.TextView elements in radio, checklist, and spinner inputs. Use Accessibility Insights for Android to inspect the reported colors; done means regular text reaches at least a 4.5:1 contrast ratio, or 3:1 for large text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- accessibility, mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100