Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions packages/ui/src/stepper/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@
}

// Current: 16px solid gray-900 ring, transparent background + half-circle dome
// margin: 1px compensates for the 2px size reduction vs upcoming (18px → 16px)
// The margin compensates for the size reduction vs upcoming (size → size-sm)
// so the indicator centres stay aligned vertically across states.
.indicator.is-current[data-indicator-variant='bullet'] {
width: var( --a8c-ui-stepper-indicator-size-sm );
height: var( --a8c-ui-stepper-indicator-size-sm );
margin: 1px;
margin: calc( ( var( --a8c-ui-stepper-indicator-size ) - var( --a8c-ui-stepper-indicator-size-sm ) ) * 0.5 );
border-style: solid;
border-color: var( --wpds-color-fg-content-neutral );
background: transparent;
Expand All @@ -81,7 +81,7 @@
.indicator.is-completed[data-indicator-variant='bullet'] {
width: var( --a8c-ui-stepper-indicator-size-sm );
height: var( --a8c-ui-stepper-indicator-size-sm );
margin: 1px;
margin: calc( ( var( --a8c-ui-stepper-indicator-size ) - var( --a8c-ui-stepper-indicator-size-sm ) ) * 0.5 );
border-style: solid;
}

Expand Down Expand Up @@ -187,9 +187,10 @@
// Title and Description
// ---------------------------------------------------------------------------

// Title color is set by the `[data-indicator-variant] … .title` rules above;
// the root always renders `data-indicator-variant`, so no base color is needed.
.title {
font-weight: inherit;
color: var( --wpds-color-fg-content-neutral );
}

.description {
Expand Down
Loading