1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-04-22 07:03:17 +02:00

fix: accessibility

* delete `visibility: hidden;`
* set 1px height and width to radio and checkbox
* set background color
This commit is contained in:
kyu-suke 2019-06-30 22:47:30 +09:00
parent 1f3368512c
commit 3c2e25a320
2 changed files with 11 additions and 2 deletions

View File

@ -52,8 +52,11 @@
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
visibility: hidden;
background: $color-white;
width: 1px;
height: 1px;
border: 0;
& + span {
position: relative;
cursor: $cursor-click-url, pointer;
@ -83,6 +86,7 @@
@include pixelize(2px, $checkbox-checked-focus, $colors);
}
&.is-dark {
background: $base-color;
+ span {
color: $color-white;
}

View File

@ -26,7 +26,11 @@
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
visibility: hidden;
background: $color-white;
width: 1px;
height: 1px;
border: 0;
& + span {
position: relative;
@ -53,6 +57,7 @@
@include pixelize(2px, $radio-checked-focus, $colors);
}
&.is-dark {
background: $base-color;
+ span {
color: $color-white;
}