diff --git a/src/scss/cdb-components/forms/checkbox.scss b/src/scss/cdb-components/forms/checkbox.scss
index 8774a75..2890cf8 100644
--- a/src/scss/cdb-components/forms/checkbox.scss
+++ b/src/scss/cdb-components/forms/checkbox.scss
@@ -14,7 +14,7 @@
-
+
```
@@ -43,6 +43,8 @@
background: $cWhite;
cursor: pointer;
box-sizing: border-box;
+ z-index: 2;
+ pointer-events: none;
&::before,
&::after {
@@ -51,7 +53,7 @@
bottom: 3px;
width: 2px;
border-radius: 1px;
- background: $cSecondaryLine;
+ background: $cWhite;
content: '';
}
@@ -79,25 +81,35 @@
}
}
-.CDB-Checkbox:disabled + .CDB-Checkbox-face {
- border: 1px solid $cSecondaryLine;
- background: $cThirdBackground;
-
+.CDB-Checkbox:checked:hover + .CDB-Checkbox-face {
+ border: 1px solid $cBlue;
&::before,
&::after {
background: $cWhite;
}
}
-.CDB-Checkbox:disabled:hover + .CDB-Checkbox-face {
- border: 1px solid $cSecondaryLine;
-}
-
-.CDB-Checkbox:checked:hover + .CDB-Checkbox-face,
-.CDB-Checkbox:focus + .CDB-Checkbox-face {
- border: 1px solid $cBlue;
-}
-
.CDB-Checkbox:hover + .CDB-Checkbox-face {
border: 1px solid $cHoverLine;
+ &::before,
+ &::after {
+ background: $cHoverLine;
+ }
}
+.CDB-Checkbox:active + .CDB-Checkbox-face {
+ border: 1px solid $cBlue;
+ &::before,
+ &::after {
+ background: $cBlue;
+ }
+}
+
+.CDB-Checkbox:disabled + .CDB-Checkbox-face {
+ border: 1px solid $cSecondaryLine;
+ background: $cThirdBackground;
+ &::before,
+ &::after {
+ opacity: 0;
+ }
+}
+
diff --git a/src/scss/cdb-components/forms/radio.scss b/src/scss/cdb-components/forms/radio.scss
index badfed2..2ada046 100644
--- a/src/scss/cdb-components/forms/radio.scss
+++ b/src/scss/cdb-components/forms/radio.scss
@@ -55,7 +55,7 @@
margin-top: -3px;
margin-left: -3px;
border-radius: 50%;
- background: $cSecondaryLine;
+ background: $cWhite;
content: '';
}
}
@@ -75,7 +75,7 @@
background: $cThirdBackground;
&::before {
- background: $cWhite;
+ opacity: 0;
}
}
@@ -85,9 +85,28 @@
.CDB-Radio:hover + .CDB-Radio-face {
border: 1px solid $cHoverLine;
+ &::before {
+ background: $cHoverLine;
+ }
}
.CDB-Radio:focus + .CDB-Radio-face,
.CDB-Radio:checked:hover + .CDB-Radio-face {
border: 1px solid $cBlue;
}
+
+.CDB-Radio:checked:hover + .CDB-Radio-face {
+ &::before {
+ background: $cWhite;
+ }
+}
+
+.CDB-Radio:active + .CDB-Radio-face {
+ &::before {
+ background: $cBlue;
+ }
+}
+
+
+
+