aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/htmlformat.py
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2017-06-21 09:59:41 -0700
committerMark Sapiro <mark@msapiro.net>2017-06-21 09:59:41 -0700
commitd79f8d317bf85d36ba9026c2f6830c6b6b60a4c2 (patch)
tree3b236672970466ce8910a6dc0ae529dc9d2e64f3 /Mailman/htmlformat.py
parent4836d8978d0b42b6a361c6a98962aec185e60023 (diff)
downloadmailman2-d79f8d317bf85d36ba9026c2f6830c6b6b60a4c2.tar.gz
mailman2-d79f8d317bf85d36ba9026c2f6830c6b6b60a4c2.tar.xz
mailman2-d79f8d317bf85d36ba9026c2f6830c6b6b60a4c2.zip
Added text for screen readers only to checkboxes on admin Membership List.
Diffstat (limited to 'Mailman/htmlformat.py')
-rwxr-xr-xMailman/htmlformat.py21
1 files changed, 20 insertions, 1 deletions
diff --git a/Mailman/htmlformat.py b/Mailman/htmlformat.py
index f144c069..19f6457d 100755
--- a/Mailman/htmlformat.py
+++ b/Mailman/htmlformat.py
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2016 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2017 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -318,6 +318,25 @@ class Document(Container):
'content="text/html; charset=%s">' % charset)
if self.title:
output.append('%s<TITLE>%s</TITLE>' % (tab, self.title))
+ # This is a kluge to only add this style to the page that needs it.
+ parts = Utils.GetPathPieces()
+ if parts:
+ if len(parts) > 2 and parts[-1] not in ('add', 'remove',
+ 'change'):
+ parts[2] = 'list'
+ if (len(parts) == 2 and parts[1] == 'members' or
+ len(parts) > 2 and parts[1:3] == ['members', 'list']):
+ output.append("""\
+<style type="text/css">
+ div.hidden
+ {position:absolute;
+ left:-10000px;
+ top:auto;
+ width:1px;
+ height:1px;
+ overflow:hidden;}
+</style>
+""")
if mm_cfg.WEB_HEAD_ADD:
output.append(mm_cfg.WEB_HEAD_ADD)
output.append('%s</HEAD>' % tab)