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:
parent
1f3368512c
commit
3c2e25a320
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user