diff options
author | Mark Sapiro <mark@msapiro.net> | 2017-06-24 14:34:48 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2017-06-24 14:34:48 -0700 |
commit | c4c4c8007bf85afee71420576d343442e388f352 (patch) | |
tree | 47ab4b8d4be526bc7969f84b368b73201a432484 /Mailman/htmlformat.py | |
parent | d79f8d317bf85d36ba9026c2f6830c6b6b60a4c2 (diff) | |
download | mailman2-c4c4c8007bf85afee71420576d343442e388f352.tar.gz mailman2-c4c4c8007bf85afee71420576d343442e388f352.tar.xz mailman2-c4c4c8007bf85afee71420576d343442e388f352.zip |
Added screen reader labels to some admindb radio buttons.
Diffstat (limited to '')
-rwxr-xr-x | Mailman/htmlformat.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/Mailman/htmlformat.py b/Mailman/htmlformat.py index 19f6457d..210150ed 100755 --- a/Mailman/htmlformat.py +++ b/Mailman/htmlformat.py @@ -318,15 +318,9 @@ 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("""\ + # Add CSS to visually hide some labeling text but allow screen + # readers to read it. + output.append("""\ <style type="text/css"> div.hidden {position:absolute; |