Skip to content

Commit 20b130d

Browse files
committed
Revert "Slack: Fix the role on the message entry text box."
Slack fixed this on their side, so this is no longer necessary. This reverts commit e8b9e34.
1 parent e8b9e34 commit 20b130d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

SlackA11yFixes.user.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,6 @@ function onNodeAdded(target) {
8181
elem.setAttribute("role", "heading");
8282
elem.setAttribute("aria-level", "2");
8383
}
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");
8884
}
8985

9086
function onClassModified(target) {

0 commit comments

Comments
 (0)