aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2016-03-11 12:37:22 +0000
committerMatthew Somerville <matthew@mysociety.org>2016-03-11 14:12:49 +0000
commit9e258681c94f6e988c8a410b9ef7e03cb4262f96 (patch)
tree95de9dfecc082d17b9968cbebc34d0595102cdd2
parentde1a7efcf4b33e60829e7c5a946bc82632247a28 (diff)
Improve accessibility of pretty radio buttons.
The radio icons are e.g. unselectable in VoiceOver if they are display:none. This also helps with client-side validation.
-rw-r--r--web/cobrands/sass/_base.scss3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/cobrands/sass/_base.scss b/web/cobrands/sass/_base.scss
index fa6a34a7a..a833bb7cf 100644
--- a/web/cobrands/sass/_base.scss
+++ b/web/cobrands/sass/_base.scss
@@ -1741,7 +1741,8 @@ table.nicetable {
display: flex; // fancy full-width buttons for browsers that support flexbox
input {
- display: none;
+ position: absolute;
+ left: -999px;
}
label {