improve chat input accessibility (#2353)

Sets aria-role="textbox" and aria-placeholder
This commit is contained in:
Albin Larsson
2022-11-17 19:32:25 +01:00
committed by Gabe Kangas
parent c2a7d9f50b
commit a74ea4ef40
2 changed files with 3 additions and 2 deletions

View File

@@ -62,7 +62,7 @@
/* If the div is empty then show the placeholder */
#message-input:empty:before {
content: attr(placeholderText);
content: attr(aria-placeholder);
pointer-events: none;
position: absolute; /* Fixes firefox positioning caret on the right */
display: block; /* For Firefox */