Skip to content

The Open Standard for Generative UI

Step Line Sub-Pixel Perfection (#120)

Hrijul Bhatnagar768fcd5b2865
diff --git a/docs/components/Steps/Steps.module.css b/docs/components/Steps/Steps.module.css
index 9301ccebc..9b918b0a8 100644
--- a/docs/components/Steps/Steps.module.css
+++ b/docs/components/Steps/Steps.module.css
@@ -5,6 +5,7 @@
--dark-mode-text: white;
--badge-size: 1.75rem;
--step-gap: 0.5rem; /* gap between steps */
+ --step-line-width: 1px;
}
.stepsContainer {
@@ -40,10 +41,10 @@
}
.stepLine {
- width: 1px;
+ width: var(--step-line-width);
flex-grow: 1;
background-color: var(--light-mode-background);
- margin-left: calc(var(--badge-size) / 2);
+ margin-left: calc(var(--badge-size) / 2 - var(--step-line-width) / 2);
}
.stepContent {