summaryrefslogtreecommitdiff
path: root/ui/lib
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2025-05-13 20:02:25 -0400
committerOwen Jacobson <owen@grimoire.ca>2025-05-13 21:11:00 -0400
commite623ab68e7f4d1a9bd8222aa8d8f5d9108a238c0 (patch)
tree7469675e65e56017a795045c64051bcc89099b8c /ui/lib
parenta0568ada5568bd8d6538e26e003b26c8409e2cb7 (diff)
Support non-mouse accessibility.
* Give the input `div` a marker to tell screen readers &c that it is a textbox. * Ensure that it participates in tab order. (Zero is a sentinel value, see <https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/tabindex>.)
Diffstat (limited to 'ui/lib')
-rw-r--r--ui/lib/components/MessageInput.svelte2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/lib/components/MessageInput.svelte b/ui/lib/components/MessageInput.svelte
index 6c22b29..b230939 100644
--- a/ui/lib/components/MessageInput.svelte
+++ b/ui/lib/components/MessageInput.svelte
@@ -38,6 +38,8 @@
<form {onsubmit}>
<textarea bind:value class="hidden" {disabled}></textarea>
<div
+ role="textbox"
+ tabindex="0"
contenteditable="plaintext-only"
class={{
textarea: true,