We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60776d8 commit e8b9e34Copy full SHA for e8b9e34
SlackA11yFixes.user.js
@@ -81,6 +81,10 @@ function onNodeAdded(target) {
81
elem.setAttribute("role", "heading");
82
elem.setAttribute("aria-level", "2");
83
}
84
+ // The message editor is a contentEditable div.
85
+ // Slack does set the role, but to an invalid value of "textarea".
86
+ if (elem = document.querySelector(".ql-editor"))
87
+ elem.setAttribute("role", "textbox");
88
89
90
function onClassModified(target) {
0 commit comments