1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-16 19:24:00 +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; -webkit-appearance: none;
-moz-appearance: none; -moz-appearance: none;
appearance: none; appearance: none;
visibility: hidden;
background: $color-white;
width: 1px;
height: 1px;
border: 0;
& + span { & + span {
position: relative; position: relative;
cursor: $cursor-click-url, pointer; cursor: $cursor-click-url, pointer;
@@ -83,6 +86,7 @@
@include pixelize(2px, $checkbox-checked-focus, $colors); @include pixelize(2px, $checkbox-checked-focus, $colors);
} }
&.is-dark { &.is-dark {
background: $base-color;
+ span { + span {
color: $color-white; color: $color-white;
} }

View File

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