]> cat aescling's git repositories - mastodon.git/commitdiff
Improve poll link accessibility (#10720)
authorMaciek Baron <thebezet@gmail.com>
Thu, 9 May 2019 20:03:32 +0000 (21:03 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 9 May 2019 20:03:32 +0000 (22:03 +0200)
* Add distinction between hover and active/focus states
* Resolves #10198

app/javascript/styles/mastodon/polls.scss

index d8bc5473a79c00d426bf6cdfb4a27822f9abb1fb..37c454a783ca349b229e72cd2d832dd0be44a2df 100644 (file)
     text-decoration: underline;
     font-size: inherit;
 
-    &:hover,
-    &:focus,
-    &:active {
+    &:hover {
       text-decoration: none;
     }
+
+    &:active,
+    &:focus {
+      background-color: rgba($dark-text-color, .1);
+    }
   }
 
   .button {