Skip to content

Conversation

@prof18
Copy link
Owner

@prof18 prof18 commented Dec 23, 2025

This commit addresses all accessibility issues reported in #600 for Talkback screen reader compatibility:

1. Make button labels translatable and fix naming:

  • Added translatable content descriptions for Search, More Options, and Drawer Menu buttons
  • Changed "Settings" button label to "More options" for better clarity
  • All button labels now use LocalFeedFlowStrings for proper internationalization
  • Files: HomeAppBar.kt

2. Add labels for text scaling buttons:

  • Added content descriptions to the increase (+) and decrease (-) font size buttons
  • Screen readers will now properly vocalize "Increase font size" and "Decrease font size"
  • Files: FontSizeSliders.kt

3. Improve context menu accessibility:

  • Updated all DropdownMenu components to use explicit PopupProperties
  • Set focusable=true to ensure proper focus management for screen readers
  • Set dismissOnBackPress=true to enable back gesture dismissal
  • Set dismissOnClickOutside=true for better UX
  • Files: FeedSourceContextMenu.kt, FeedItemContextMenu.kt, CategoryContextMenu.kt, HomeAppBarDropdownMenu.kt

4. Add accessibility for new ScrollToTopButton:

  • Added content description for the newly added Scroll to Top FAB
  • Screen readers will now announce "Scroll to top" when focused
  • Files: ScrollToTopButton.kt

New translatable strings added to strings.xml:

  • search_button_content_description: "Search"
  • more_options_button_content_description: "More options"
  • drawer_menu_button_content_description: "Open navigation menu"
  • increase_font_size_button_content_description: "Increase font size"
  • decrease_font_size_button_content_description: "Decrease font size"
  • scroll_to_top_button_content_description: "Scroll to top"

Fixes #600

This commit addresses all accessibility issues reported in #600 for Talkback screen reader compatibility:

**1. Make button labels translatable and fix naming:**
- Added translatable content descriptions for Search, More Options, and Drawer Menu buttons
- Changed "Settings" button label to "More options" for better clarity
- All button labels now use LocalFeedFlowStrings for proper internationalization
- Files: HomeAppBar.kt

**2. Add labels for text scaling buttons:**
- Added content descriptions to the increase (+) and decrease (-) font size buttons
- Screen readers will now properly vocalize "Increase font size" and "Decrease font size"
- Files: FontSizeSliders.kt

**3. Improve context menu accessibility:**
- Updated all DropdownMenu components to use explicit PopupProperties
- Set focusable=true to ensure proper focus management for screen readers
- Set dismissOnBackPress=true to enable back gesture dismissal
- Set dismissOnClickOutside=true for better UX
- Files: FeedSourceContextMenu.kt, FeedItemContextMenu.kt, CategoryContextMenu.kt, HomeAppBarDropdownMenu.kt

**4. Add accessibility for new ScrollToTopButton:**
- Added content description for the newly added Scroll to Top FAB
- Screen readers will now announce "Scroll to top" when focused
- Files: ScrollToTopButton.kt

**New translatable strings added to strings.xml:**
- search_button_content_description: "Search"
- more_options_button_content_description: "More options"
- drawer_menu_button_content_description: "Open navigation menu"
- increase_font_size_button_content_description: "Increase font size"
- decrease_font_size_button_content_description: "Decrease font size"
- scroll_to_top_button_content_description: "Scroll to top"

Fixes #600
@prof18 prof18 enabled auto-merge (rebase) December 23, 2025 09:45
@prof18 prof18 merged commit a75952f into main Dec 23, 2025
4 checks passed
@prof18 prof18 deleted the claude/fix-issue-600-011CUqTPJheRgsJgV6ktv5b2 branch December 23, 2025 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compatibility with screen readers (Talkback)

3 participants