Browse Source

Improve poll link accessibility (#10720)

* Add distinction between hover and active/focus states
* Resolves #10198
Maciek Baron 5 months ago
parent
commit
c407a4edf8
1 changed files with 6 additions and 3 deletions
  1. 6
    3
      app/javascript/styles/mastodon/polls.scss

+ 6
- 3
app/javascript/styles/mastodon/polls.scss View File

@@ -114,11 +114,14 @@
114 114
     text-decoration: underline;
115 115
     font-size: inherit;
116 116
 
117
-    &:hover,
118
-    &:focus,
119
-    &:active {
117
+    &:hover {
120 118
       text-decoration: none;
121 119
     }
120
+
121
+    &:active,
122
+    &:focus {
123
+      background-color: rgba($dark-text-color, .1);
124
+    }
122 125
   }
123 126
 
124 127
   .button {

Loading…
Cancel
Save