Skip to content

Accessibility: Missing labels on Theme options and input field improvements #269

@AnaFerreira015

Description

@AnaFerreira015

Hi! I’m Ana Ferreira, a Master's student in Computer Science.

As part of my research on mobile accessibility, I am analyzing open-source Android applications to help identify and correct accessibility barriers so users can utilize assistive technologies (like TalkBack) more effectively.

I’ve been exploring Inflation Calculator and found a specific issue in the Theme Selection Menu, so I wanted to propose a fix.

1. The Issue

When opening the Theme options (menu/dialog), the Radio Buttons for selecting the mode (System, Light, Dark) present the following behavior:

  • Current behavior: The selection buttons lack a programmatic link to their visible labels. TalkBack announces them simply as "Radio Button" (or "Unlabelled"), violating WCAG 4.1.2 (Name, Role, Value).
  • Impact: Blind users cannot determine which option they are selecting (System, Light, or Dark) without guessing based on position.

2. Proposed Solution

To fix this, I suggest ensuring the RadioButton elements have an android:text attribute directly on them, or use android:contentDescription matching the visible text.

Code snippet / XML suggestion:

<RadioButton
    ...
    android:text="@string/theme_dark" /> ```

---

### 3. Additional fixes (Need your input)

I have identified **3** other categories of accessibility improvements, particularly on the Main Screen.

**To avoid spamming your notification feed, how would you prefer I submit these?**

- [ ]  **Option A:** List them all here in this issue (I can update the comment below).
- [ ]  **Option B:** Open separate issues for each specific problem.

I can provide detailed fixes for these upon request.

Please let me know your preference, and I will proceed accordingly.

Best regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions