Files
nairobi/app/models
Javi Martín 8edcbcfd3b Fix aria-valuenow attibute in ballot progress bar
We were setting it to 0, and so screen reader users might be confused by
it.

The easiest way to reuse the code and using it for both this attribute
and the width of the progress bar is to move this method to the voting
style, just like the other methods used in this view.

Note the progressbar ARIA role might not be right, since this isn't a
task which is "progressing", but an indicator of the amount spent and
amount available, which is exactly what the <meter> HTML5 tag was
designed for.

We might use a <meter> tag in the future. For now, I'm leaving it as it
is because I'm not certain about how well <meter> is supported in
accessibility tools, and because it's definitely not supported in
Internet Explorer 11, which we haven't officially dropped support for.
2020-07-30 16:20:00 +02:00
..
2019-11-01 20:08:46 +01:00
2020-07-27 16:49:58 +02:00
2019-11-06 00:04:02 +01:00
2019-03-27 15:22:14 +01:00
2019-11-06 00:04:02 +01:00
2019-10-23 14:39:31 +02:00
2019-03-14 17:25:43 +01:00
2019-04-29 13:08:43 -05:00
2020-07-08 12:39:25 +02:00
2020-04-09 07:11:53 +10:00
2019-02-05 17:41:00 +01:00
2019-10-25 19:29:12 +02:00
2017-12-15 19:21:02 +01:00