Skip to content

Commit 563ad91

Browse files
committed
Fix: Align class names in List
1 parent 564d428 commit 563ad91

File tree

2 files changed

+8
-8
lines changed
  • packages/components/src

2 files changed

+8
-8
lines changed

packages/components/src/components/hds/stepper/list/step.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default class HdsStepperListStep extends Component<HdsStepperListStepSign
7474
const { status = DEFAULT_STATUS } = this.args;
7575

7676
assert(
77-
`@status for "Hds::Stepper::Step::Indicator" must be one of the following: ${STATUSES.join(
77+
`@status for "Hds::Stepper::List::Step" must be one of the following: ${STATUSES.join(
7878
', '
7979
)}; received: ${status}`,
8080
STATUSES.includes(status)
@@ -120,7 +120,7 @@ export default class HdsStepperListStep extends Component<HdsStepperListStepSign
120120
get classNames(): string {
121121
const classes = ['hds-stepper-list__step'];
122122

123-
classes.push(`hds-stepper-list__step-${this.status}`);
123+
classes.push(`hds-stepper-list__step--${this.status}`);
124124

125125
return classes.join(' ');
126126
}

packages/components/src/styles/components/stepper/list.scss

+6-6
Original file line numberDiff line numberDiff line change
@@ -74,25 +74,25 @@ $hds-stepper-list-step-padding-bottom: 16px;
7474

7575
// Complete & Active
7676

77-
.hds-stepper-list__step-complete .hds-stepper-list__step__title,
78-
.hds-stepper-list__step-progress .hds-stepper-list__step__title,
79-
.hds-stepper-list__step-processing .hds-stepper-list__step__title {
77+
.hds-stepper-list__step--complete .hds-stepper-list__step__title,
78+
.hds-stepper-list__step--progress .hds-stepper-list__step__title,
79+
.hds-stepper-list__step--processing .hds-stepper-list__step__title {
8080
color: var(--token-color-foreground-strong);
8181
}
8282

8383
// Complete
8484

8585
.hds-stepper-list__step {
86-
&:not(:last-of-type).hds-stepper-list__step-complete .hds-stepper-list__step__progress::after {
86+
&:not(:last-of-type).hds-stepper-list__step--complete .hds-stepper-list__step__progress::after {
8787
height: calc(100% + $hds-stepper-list-step-padding-bottom - 4px);
8888
}
8989

90-
&:not(:last-of-type, :first-of-type).hds-stepper-list__step-complete .hds-stepper-list__step__progress::after {
90+
&:not(:last-of-type, :first-of-type).hds-stepper-list__step--complete .hds-stepper-list__step__progress::after {
9191
top: -4px;
9292
height: calc(100% + $hds-stepper-list-step-padding-bottom);
9393
}
9494

95-
&:not(:first-of-type):last-of-type.hds-stepper-list__step-complete .hds-stepper-list__step__progress::after {
95+
&:not(:first-of-type):last-of-type.hds-stepper-list__step--complete .hds-stepper-list__step__progress::after {
9696
position: absolute;
9797
top: -4px;
9898
left: 11px;

0 commit comments

Comments
 (0)