Skip to content

Commit 41a43ef

Browse files
authored
fix(klabel): required indicator icon not aligned properly [KM-1034] (#2640)
Fix the required indicator bottom value did not include $kLabelRequiredDotSize to calculate
1 parent b25ee88 commit 41a43ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/KLabel/KLabel.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ $kLabelRequiredDotSize: 6px;
9090
&::before {
9191
background-color: var(--kui-color-background-danger, $kui-color-background-danger);
9292
border-radius: var(--kui-border-radius-circle, $kui-border-radius-circle);
93-
bottom: calc(50% - 2px); // place the dot in the middle of the text
93+
bottom: calc(50% - $kLabelRequiredDotSize / 2); // place the dot in the middle of the text
9494
content: '';
9595
height: $kLabelRequiredDotSize;
9696
left: 0px;

0 commit comments

Comments
 (0)