about summary refs log tree commit diff
path: root/app/javascript/styles
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-12-03 19:53:16 +0100
committerEugen Rochko <eugen@zeonfederated.com>2019-12-03 19:53:16 +0100
commitc05ed8a6254bc82fda3ae0fd3934dc2cdcf7c82d (patch)
tree3907d5b225a240aa43611a3d0cd16471d907bc5b /app/javascript/styles
parentf1ef777d40235dc922a0b56da9fc00b98827c189 (diff)
Fix poll options not being selectable via keyboard (#12538)
* Fix poll options not being selectable via keyboard

Fixes #12384

* Improve styling of poll option checkboxes/radio buttons

* Use more appropriate ARIA roles for poll options

* Allow switching between single and multiple choice from keyboard

* Coding style

* Avoid using .bind()
Diffstat (limited to 'app/javascript/styles')
-rw-r--r--app/javascript/styles/mastodon/polls.scss17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/javascript/styles/mastodon/polls.scss b/app/javascript/styles/mastodon/polls.scss
index f59a9d693..833f77009 100644
--- a/app/javascript/styles/mastodon/polls.scss
+++ b/app/javascript/styles/mastodon/polls.scss
@@ -91,6 +91,23 @@
       border-color: $valid-value-color;
       background: $valid-value-color;
     }
+
+    &:active,
+    &:focus,
+    &:hover {
+      border-width: 4px;
+      background: none;
+    }
+
+    &::-moz-focus-inner {
+      outline: 0 !important;
+      border: 0;
+    }
+
+    &:focus,
+    &:active {
+      outline: 0 !important;
+    }
   }
 
   &__number {