Skip to content

Commit 4ef71ab

Browse files
committed
fix(checkbox): fix alignment
1 parent f0f27a0 commit 4ef71ab

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

packages/components/base/src/boolean-input/styles/index.module.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
display: inline-flex;
66
align-items: center;
77
justify-content: center;
8+
vertical-align: text-bottom;
89
}
910

1011
.input {
@@ -16,6 +17,7 @@
1617
appearance: none;
1718
cursor: pointer;
1819
z-index: 1;
20+
margin: 0;
1921
}
2022

2123
.disabled {

packages/components/base/src/checkbox/styles/icon.module.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
will-change: transform;
3131
transform: scale(0);
3232
color: theme.get-color(highlight-primary);
33+
position: absolute;
34+
top: 0;
35+
left: 0;
36+
height: 100%;
37+
width: 100%;
3338
}
3439

3540
:indeterminate ~ .root .icon,

packages/components/base/src/table/Th/index.module.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@
2121
.content {
2222
display: inline-flex;
2323
align-items: center;
24+
vertical-align: middle;
2425
}

0 commit comments

Comments
 (0)