Skip to content

Commit 8c36250

Browse files
committed
chore: FA icon shift when using Kit #4292
1 parent 7054854 commit 8c36250

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

framework/core/less/common/ColorInput.less

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@
3030
}
3131

3232
&-icon {
33-
text-align: center;
3433
color: var(--validation-error-color);
34+
35+
// FontAwesome Kit overrides display which breaks vertical centering
36+
// Use flexbox with !important to maintain proper icon alignment
37+
display: flex !important;
38+
align-items: center !important;
39+
justify-content: center;
3540
}
3641
}

framework/core/less/common/Input.less

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@
99
font-size: 14px;
1010
text-align: center;
1111
position: absolute;
12-
line-height: 1.5;
1312
pointer-events: none;
13+
14+
// FontAwesome Kit overrides display which breaks vertical centering
15+
// Use flexbox with !important to maintain proper icon alignment
16+
height: 100%;
17+
display: flex !important;
18+
align-items: center !important;
19+
justify-content: center;
1420
}
1521

1622
.FormControl {
@@ -55,14 +61,11 @@
5561
height: 100%;
5662
}
5763

58-
.Button, &-prefix-icon {
64+
.Button {
5965
height: 100%;
6066
display: flex;
6167
align-items: center;
6268
justify-content: center;
63-
}
64-
65-
.Button {
6669
position: absolute;
6770
right: 0;
6871
top: 0;

0 commit comments

Comments
 (0)