From 4b141d6a591e032451a8fb8a51939b93aba94ea6 Mon Sep 17 00:00:00 2001 From: Jason Ross Date: Thu, 2 Jul 2026 17:50:21 -0500 Subject: [PATCH] docs(compose): correct RichTextEditor toolbar accessibility KDoc (onClickLabel, not contentDescription) Co-Authored-By: Claude Opus 4.8 --- app/src/main/kotlin/org/libremail/ui/compose/RichTextEditor.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/org/libremail/ui/compose/RichTextEditor.kt b/app/src/main/kotlin/org/libremail/ui/compose/RichTextEditor.kt index 18f4804..942af0b 100644 --- a/app/src/main/kotlin/org/libremail/ui/compose/RichTextEditor.kt +++ b/app/src/main/kotlin/org/libremail/ui/compose/RichTextEditor.kt @@ -78,7 +78,8 @@ internal const val IMAGE_TAG = "libremail:image" * feels exactly like the old editor. * * The field is a normal Compose text field, so TalkBack, text selection, and large system fonts all - * work as usual; the toolbar buttons carry content descriptions and toggle state for accessibility. + * work as usual; each toolbar button exposes its accessible action label via `onClickLabel` on its + * [Modifier.clickable] (not a `contentDescription`), and still carries toggle state for accessibility. * * [resolveFont] maps a CSS font-family stack to a Compose [FontFamily] for display; the default * resolves nothing, leaving the system font (the model still round-trips the CSS value untouched).