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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user