Show Advanced KnowledgeHide Advanced KnowledgeMaking Mails more accessible
Page Overview
[Hide] [Show] Was implemented as bugfix. A heartfelt Thank-You to Databay AG!
1 Initial Problem
Screenreaders get dizzy by some tables in notification mails. While it is technically possible "to get" the content, it is unneccessarily hard.
Because knowing and memorizing the structure of a table can be important for orientation in a document, each step, while navigating through the nested table rows and cells, is read by the screen reader.
Original ILIAS HTML Mail Template
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width" /> </head> <body style="width: 100% !important; min-width: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; color: #222222; font-family: 'Helvetica', 'Arial', sans-serif; font-weight: normal; text-align: left; line-height: 19px; font-size: 14px; margin: 0; padding: 0;"> <style type="text/css"> a:hover { color: #2795b6 !important; } a:active { color: #2795b6 !important; } a:visited { color: #2ba6cb !important; } h1 a:active { color: #2ba6cb !important; } h2 a:active { color: #2ba6cb !important; } h3 a:active { color: #2ba6cb !important; } h4 a:active { color: #2ba6cb !important; } h5 a:active { color: #2ba6cb !important; } h6 a:active { color: #2ba6cb !important; } h1 a:visited { color: #2ba6cb !important; } h2 a:visited { color: #2ba6cb !important; } h3 a:visited { color: #2ba6cb !important; } h4 a:visited { color: #2ba6cb !important; } h5 a:visited { color: #2ba6cb !important; } h6 a:visited { color: #2ba6cb !important; } table.button:hover td { background: #2795b6 !important; } table.button:visited td { background: #2795b6 !important; } table.button:active td { background: #2795b6 !important; } table.button:hover td a { color: #fff !important; } table.button:visited td a { color: #fff !important; } table.button:active td a { color: #fff !important; } table.button:hover td { background: #2795b6 !important; } table.tiny-button:hover td { background: #2795b6 !important; } table.small-button:hover td { background: #2795b6 !important; } table.medium-button:hover td { background: #2795b6 !important; } table.large-button:hover td { background: #2795b6 !important; } table.button:hover td a { color: #ffffff !important; } table.button:active td a { color: #ffffff !important; } table.button td a:visited { color: #ffffff !important; } table.tiny-button:hover td a { color: #ffffff !important; } table.tiny-button:active td a { color: #ffffff !important; } table.tiny-button td a:visited { color: #ffffff !important; } table.small-button:hover td a { color: #ffffff !important; } table.small-button:active td a { color: #ffffff !important; } table.small-button td a:visited { color: #ffffff !important; } table.medium-button:hover td a { color: #ffffff !important; } table.medium-button:active td a { color: #ffffff !important; } table.medium-button td a:visited { color: #ffffff !important; } table.large-button:hover td a { color: #ffffff !important; } table.large-button:active td a { color: #ffffff !important; } table.large-button td a:visited { color: #ffffff !important; } table.secondary:hover td { background: #d0d0d0 !important; color: #555; } table.secondary:hover td a { color: #555 !important; } table.secondary td a:visited { color: #555 !important; } table.secondary:active td a { color: #555 !important; } table.success:hover td { background: #457a1a !important; } table.alert:hover td { background: #970b0e !important; } table.facebook:hover td { background: #2d4473 !important; } table.twitter:hover td { background: #0087bb !important; } table.google-plus:hover td { background: #CC0000 !important; } @media only screen and (max-width: 600px) { table[class="body"] img { width: auto !important; height: auto !important; } table[class="body"] center { min-width: 0 !important; } table[class="body"] .container { width: 95% !important; } table[class="body"] .row { width: 100% !important; display: block !important; } table[class="body"] .wrapper { display: block !important; padding-right: 0 !important; } table[class="body"] .columns { table-layout: fixed !important; float: none !important; width: 100% !important; padding-right: 0px !important; padding-left: 0px !important; display: block !important; } table[class="body"] .column { table-layout: fixed !important; float: none !important; width: 100% !important; padding-right: 0px !important; padding-left: 0px !important; display: block !important; } table[class="body"] .wrapper.first .columns { display: table !important; } table[class="body"] .wrapper.first .column { display: table !important; } table[class="body"] table.columns td { width: 100% !important; } table[class="body"] table.column td { width: 100% !important; } table[class="body"] .columns td.one { width: 8.333333% !important; } table[class="body"] .column td.one { width: 8.333333% !important; } table[class="body"] .columns td.two { width: 16.666666% !important; } table[class="body"] .column td.two { width: 16.666666% !important; } table[class="body"] .columns td.three { width: 25% !important; } table[class="body"] .column td.three { width: 25% !important; } table[class="body"] .columns td.four { width: 33.333333% !important; } table[class="body"] .column td.four { width: 33.333333% !important; } table[class="body"] .columns td.five { width: 41.666666% !important; } table[class="body"] .column td.five { width: 41.666666% !important; } table[class="body"] .columns td.six { width: 50% !important; } table[class="body"] .column td.six { width: 50% !important; } table[class="body"] .columns td.seven { width: 58.333333% !important; } table[class="body"] .column td.seven { width: 58.333333% !important; } table[class="body"] .columns td.eight { width: 66.666666% !important; } table[class="body"] .column td.eight { width: 66.666666% !important; } table[class="body"] .columns td.nine { width: 75% !important; } table[class="body"] .column td.nine { width: 75% !important; } table[class="body"] .columns td.ten { width: 83.333333% !important; } table[class="body"] .column td.ten { width: 83.333333% !important; } table[class="body"] .columns td.eleven { width: 91.666666% !important; } table[class="body"] .column td.eleven { width: 91.666666% !important; } table[class="body"] .columns td.twelve { width: 100% !important; } table[class="body"] .column td.twelve { width: 100% !important; } table[class="body"] td.offset-by-one { padding-left: 0 !important; } table[class="body"] td.offset-by-two { padding-left: 0 !important; } table[class="body"] td.offset-by-three { padding-left: 0 !important; } table[class="body"] td.offset-by-four { padding-left: 0 !important; } table[class="body"] td.offset-by-five { padding-left: 0 !important; } table[class="body"] td.offset-by-six { padding-left: 0 !important; } table[class="body"] td.offset-by-seven { padding-left: 0 !important; } table[class="body"] td.offset-by-eight { padding-left: 0 !important; } table[class="body"] td.offset-by-nine { padding-left: 0 !important; } table[class="body"] td.offset-by-ten { padding-left: 0 !important; } table[class="body"] td.offset-by-eleven { padding-left: 0 !important; } table[class="body"] table.columns td.expander { width: 1px !important; } table[class="body"] .right-text-pad { padding-left: 10px !important; } table[class="body"] .text-pad-right { padding-left: 10px !important; } table[class="body"] .left-text-pad { padding-right: 10px !important; } table[class="body"] .text-pad-left { padding-right: 10px !important; } table[class="body"] .hide-for-small { display: none !important; } table[class="body"] .show-for-desktop { display: none !important; } table[class="body"] .show-for-small { display: inherit !important; } table[class="body"] .hide-for-desktop { display: inherit !important; } table[class="body"] .right-text-pad { padding-left: 10px !important; } table[class="body"] .left-text-pad { padding-right: 10px !important; } } </style> <table class="body" style="border-spacing: 0; border-collapse: collapse; vertical-align: top; text-align: left; height: 100%; width: 100%; color: #222222; font-family: 'Helvetica', 'Arial', sans-serif; font-weight: normal; line-height: 19px; font-size: 14px; margin: 0; padding: 0;"> <tr style="vertical-align: top; text-align: left; padding: 0;" align="left"> <td class="center" align="center" valign="top" style="word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; text-align: center; color: #222222; font-family: 'Helvetica', 'Arial', sans-serif; font-weight: normal; line-height: 19px; font-size: 14px; margin: 0; padding: 0;"><center style="width: 100%; min-width: 580px;"> <table class="row header" style="border-spacing: 0; border-collapse: collapse; vertical-align: top; text-align: left; width: 100%; position: relative; background: #D0D0D0; padding: 0px;" bgcolor="#D0D0D0"> <tr style="vertical-align: top; text-align: left; padding: 0;" align="left"> <td class="center" align="center" style="word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; text-align: center; color: #222222; font-family: 'Helvetica', 'Arial', sans-serif; font-weight: normal; line-height: 19px; font-size: 14px; margin: 0; padding: 0;" valign="top"><center style="width: 100%; min-width: 580px;"> <table class="container" style="border-spacing: 0; border-collapse: collapse; vertical-align: top; text-align: inherit; width: 580px; margin: 0 auto; padding: 0;"> <tr style="vertical-align: top; text-align: left; padding: 0;" align="left"> <td class="wrapper last" style="word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; text-align: left; position: relative; color: #222222; font-family: 'Helvetica', 'Arial', sans-serif; font-weight: normal; line-height: 19px; font-size: 14px; margin: 0; padding: 10px 0px 0px;" align="left" valign="top"><table class="twelve columns" style="border-spacing: 0; border-collapse: collapse; vertical-align: top; text-align: left; width: 580px; margin: 0 auto; padding: 0;"> <tr style="vertical-align: top; text-align: left; padding: 0;" align="left"> <td class="six sub-columns" style="word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; text-align: left; min-width: 0px; width: 50%; color: #222222; font-family: 'Helvetica', 'Arial', sans-serif; font-weight: normal; line-height: 19px; font-size: 14px; margin: 0; padding: 0px 10px 10px 0px;" align="left" valign="top"> <img src="cid:img/ilias_logo.jpg" /> </td> <td class="six sub-columns last" align="right" style="text-align: right; vertical-align: middle; word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; min-width: 0px; width: 50%; color: #222222; font-family: 'Helvetica', 'Arial', sans-serif; font-weight: normal; line-height: 19px; font-size: 14px; margin: 0; padding: 0px 0px 10px;" valign="middle"><span class="template-label" style="color: #ffffff; font-weight: normal; font-size: 20px;">Open Source e-Learning</span></td> <td class="expander" style="word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; text-align: left; visibility: hidden; width: 0px; color: #222222; font-family: 'Helvetica', 'Arial', sans-serif; font-weight: normal; line-height: 19px; font-size: 14px; margin: 0; padding: 0;" align="left" valign="top"></td> </tr> </table></td> </tr> </table> </center></td> </tr> </table> <br /> <table class="container" style="border-spacing: 0; border-collapse: collapse; vertical-align: top; text-align: inherit; width: 580px; margin: 0 auto; padding: 0;"> <tr style="vertical-align: top; text-align: left; padding: 0;" align="left"> <td style="word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; text-align: left; color: #222222; font-family: 'Helvetica', 'Arial', sans-serif; font-weight: normal; line-height: 19px; font-size: 14px; margin: 0; padding: 0;" align="left" valign="top"><table class="row" style="border-spacing: 0; border-collapse: collapse; vertical-align: top; text-align: left; width: 100%; position: relative; display: block; padding: 0px;"> <tr style="vertical-align: top; text-align: left; padding: 0;" align="left"> <td class="wrapper last" style="word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; text-align: left; position: relative; color: #222222; font-family: 'Helvetica', 'Arial', sans-serif; font-weight: normal; line-height: 19px; font-size: 14px; margin: 0; padding: 10px 0px 0px;" align="left" valign="top"><table class="twelve columns" style="border-spacing: 0; border-collapse: collapse; vertical-align: top; text-align: left; width: 580px; margin: 0 auto; padding: 0;"> <tr style="vertical-align: top; text-align: left; padding: 0;" align="left"> <td style="word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; text-align: left; color: #222222; font-family: 'Helvetica', 'Arial', sans-serif; font-weight: normal; line-height: 19px; font-size: 14px; margin: 0; padding: 0px 0px 10px;" align="left" valign="top">{PLACEHOLDER}</td> <td class="expander" style="word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; text-align: left; visibility: hidden; width: 0px; color: #222222; font-family: 'Helvetica', 'Arial', sans-serif; font-weight: normal; line-height: 19px; font-size: 14px; margin: 0; padding: 0;" align="left" valign="top"></td> </tr> </table></td> </tr> </table></td> </tr> </table> </center></td> </tr> </table> </body> </html>
|
|
- table
- tr
- td
- table
- tr
- td
- table
- tr
- td
- table
- tr
- td
- img: cid:img/ilias_logo.jpg
- td
- table
Simple Custom HTML Mail Template (a proposal)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width" /> </head> <body style="margin: 0px;"> <table style="background-color: #D0D0D0; width: 100%;"> <tr> <td style="padding-left: 15px;"><img src="cid:img/ilias_logo.jpg" alt="ILIAS-Logo" /></td> <td style="padding-left: 15px; padding-right: 15px; font-family: 'Open Sans', 'Verdana', 'Arial', 'Helvetica', sans-serif; font-weight: normal; color: #ffffff; text-align: left; line-height: 19px; font-size: 20px;">Open Source e-Learning</td> </tr> </table> <div style="margin: 15px; font-family: 'Open Sans', 'Verdana', 'Arial', 'Helvetica', sans-serif; font-weight: normal; text-align: left; line-height: 19px; font-size: 14px;">{PLACEHOLDER}</div> </body> </html>
|
|
- table
- tr
- td
- img: cid:img/ilias_log.jpg
- td
- div
2 Conceptual Summary
Check all Mails and get rif of tables that cause screenreader to hickup and are easily acessible.
While we are at it we should inspect for language improvements to arrive at easier language.
3 User Interface Modifications
3.1 List of Affected Views
3.2 User Interface Details
none
3.3 New User Interface Concepts
none.
4 Technical Information
{The maintainer has to provide necessary technical information, e.g. dependencies on other ILIAS components, necessary modifications in general services/architecture, potential security or performance issues.}
5 Contact
- Author of the Request:
- Maintainer:
- Implementation of the feature is done by:
6 Funding
If you are interest in funding this feature, please add your name and institution to this list.
7 Discussion
8 Implementation
{The maintainer has to give a description of the final implementation and add screenshots if possible.}
Test Cases
Test cases completed at {date} by {user}
- {Test case number linked to Testrail} : {test case title}
Approval
Approved at {date} by {user}.