Skip to content

Commit 0939411

Browse files
committed
Slack: Restrict overzealous pruning of white space.
1 parent 8525246 commit 0939411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SlackA11yFixes.user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function onNodeAdded(target) {
8585
elem.setAttribute("aria-level", "2");
8686
}
8787
// Kill some extraneous white space.
88-
for (elem of target.querySelectorAll(".message_gutter, i.copy_only br")) {
88+
for (elem of target.querySelectorAll(".message_gutter, .message_content > i.copy_only br")) {
8989
elem.setAttribute("aria-hidden", "true");
9090
}
9191
}

0 commit comments

Comments
 (0)