Skip to content

Commit 645ed1a

Browse files
KRRISH96rishichawda
authored andcommitted
fix(checkbox): update checkbox design (#291)
* fix(Checkbox): Fix checkbox design bugs * fix(Checkbox): fix cursor pointer issue on checkbox #287 * fix(Checkbox): fix checked state position
1 parent 0a0916d commit 645ed1a

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

doc/src/components/common/componentData/Checkbox/theme.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
}
44

55
:local(.checkbox) {
6-
border-color: #6b76ff;
6+
border-color: #8b104e;
77
.check-item {
8-
border-color: #6b76ff !important;
8+
border-color: #8b104e !important;
99
}
1010
}
1111

1212

1313
:local(.inverted) {
14-
background-color: #0b409c !important;
14+
background-color: #8b104e !important;
1515
.check-item {
16-
border-color: #f18a9b !important;
16+
border-color: #fefefe !important;
1717
}
1818
}

lib/checkbox/theme.module.scss

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
@import '../globals/theme.scss';
22
:local(.checkbox) {
3+
display: inline-block;
34
background-color: $secondary-white;
45
padding: 2px;
5-
border: 1px solid $secondary-blue;
6-
&:hover {
7-
cursor: pointer;
8-
}
6+
border: 2px solid $secondary-blue;
7+
height: 25px;
8+
width: 25px;
9+
box-sizing: border-box;
10+
border-radius: 3px;
11+
cursor: pointer;
912
input {
1013
/* Disable the HTML input */
1114
opacity: 0;
15+
margin: 0;
16+
cursor: pointer;
1217
}
1318
/* Fixes width issue in safari */
1419
@media not all and (min-resolution:.001dpcm) {
@@ -24,14 +29,13 @@
2429
}
2530

2631
:local(.checked) {
27-
height: 200px;
2832
position: relative;
2933
.check-item {
3034
/* Check Item adds the tick */
3135
/* Builds a rectange with border width and rotates it 45 Degree */
3236
position: absolute;
3337
left: 32%;
34-
top: 12%;
38+
top: 5%;
3539
width: 5px;
3640
height: 12px;
3741
border: solid $secondary-blue;

0 commit comments

Comments
 (0)