Add focus-visible polyfill, issue #187 (#193)

* add focus-visible polyfill
* remove unnecessary outline: none from styles
* make buttons Pin, Block, Delete visible when focused
* fix outline of user details close button
* close user info by ESC
* user info: don't focus the close button
This commit is contained in:
Alexandr K
2018-08-23 20:46:16 +04:00
committed by Aleksei Gurianov
parent a6277d764a
commit 419d2ae75e
11 changed files with 30 additions and 23 deletions
@@ -9,10 +9,6 @@
color: #31c7c5;
}
&:focus {
outline: none;
}
+ .comment__action {
margin-left: 8px;
}
@@ -10,8 +10,4 @@
&:hover {
color: #0aa;
}
&:focus {
outline: none;
}
}
@@ -4,9 +4,10 @@
user-select: none;
font-size: 14px;
font-weight: 700;
opacity: 0;
@media (hover: hover) {
font-weight: 700;
opacity: 0;
&:hover,
&:focus-within {
opacity: 1;
}
}
@@ -8,7 +8,6 @@
background: url('comment__vote.svg') center no-repeat;
background-size: contain;
cursor: pointer;
outline: none;
&:hover {
background-image: url('_selected/comment__vote_selected.svg');