Skip to content

a11y: improve accessibility on rich text editor options. #4886

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 16, 2025

Conversation

bmarty
Copy link
Member

@bmarty bmarty commented Jun 16, 2025

Content

Ensure that talkback (aka screen reader) give the state of the various rich text editor option. The state can be disabled, selected, or not selected, depending on the type of formatting option.

Motivation and context

Improve accessibility of the rich text editor.

Note: iOS PR is element-hq/element-x-ios#4194, but we do not need to use the strings created there, we can use the facilities provided by the compose framework instead.

Screenshots / GIFs

Tests

  • Step 1
  • Step 2
  • Step ...

Tested devices

  • Physical
  • Emulator
  • OS version(s):

Checklist

  • Changes have been tested on an Android device or Android emulator with API 24
  • UI change has been tested on both light and dark themes
  • Accessibility has been taken into account. See https://github.com/element-hq/element-x-android/blob/develop/CONTRIBUTING.md#accessibility
  • Pull request is based on the develop branch
  • Pull request title will be used in the release note, it clearly define what will change for the user
  • Pull request includes screenshots or videos if containing UI changes
  • You've made a self review of your PR

@bmarty bmarty requested a review from a team as a code owner June 16, 2025 15:00
@bmarty bmarty removed the request for review from a team June 16, 2025 15:00
@bmarty bmarty added the PR-Misc For other changes label Jun 16, 2025
@bmarty bmarty requested a review from jmartinesp June 16, 2025 15:00
Copy link
Contributor

📱 Scan the QR code below to install the build (arm64 only) for this PR.
QR code
If you can't scan the QR code you can install the build via this link: https://i.diawi.com/fGj9WS

Copy link

Copy link

codecov bot commented Jun 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.28%. Comparing base (6c84482) to head (f95b38d).
Report is 2 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #4886   +/-   ##
========================================
  Coverage    80.27%   80.28%           
========================================
  Files         2148     2148           
  Lines        57045    57067   +22     
  Branches      7185     7189    +4     
========================================
+ Hits         45793    45816   +23     
  Misses        8811     8811           
+ Partials      2441     2440    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

interactionSource = remember { MutableInteractionSource() },
indication = ripple(
bounded = false,
radius = 20.dp,
),
)
.size(48.dp)
.then(
if (toggleable) {
Modifier.toggleable(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL 👀

Copy link
Member

@jmartinesp jmartinesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@bmarty bmarty merged commit 4e93079 into develop Jun 16, 2025
38 of 39 checks passed
@bmarty bmarty deleted the feature/bma/a11yRichTextEditor branch June 16, 2025 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR-Misc For other changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants