Skip to content

Conversation

@leagrdv
Copy link
Contributor

@leagrdv leagrdv commented Oct 23, 2025

📄 Description

  • Removed the HTML stepper
  • Created the post-stepper and post-stepper-item components

🚀 Demo

https://preview-6502--swisspost-design-system-next.netlify.app/?path=/docs/7dc546d9-e248-4d06-befe-3ad62fcd310f--docs


🔮 Design review

  • Design review done
  • No design review needed

📝 Checklist

  • ✅ My code follows the style guidelines of this project
  • 🛠️ I have performed a self-review of my own code
  • 📄 I have made corresponding changes to the documentation
  • ⚠️ My changes generate no new warnings or errors
  • 🧪 I have added tests that prove my fix is effective or that my feature works
  • ✔️ New and existing unit tests pass locally with my changes

@leagrdv leagrdv requested review from a team as code owners October 23, 2025 06:49
@leagrdv leagrdv requested a review from alizedebray October 23, 2025 06:49
@leagrdv leagrdv linked an issue Oct 23, 2025 that may be closed by this pull request
7 tasks
@changeset-bot
Copy link

changeset-bot bot commented Oct 23, 2025

🦋 Changeset detected

Latest commit: 2ee0158

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 12 packages
Name Type
@swisspost/design-system-styles Major
@swisspost/design-system-components Major
@swisspost/design-system-documentation Patch
@swisspost/design-system-components-angular-workspace Patch
@swisspost/internet-header Major
@swisspost/design-system-nextjs-integration Patch
@swisspost/design-system-styles-primeng-workspace Patch
@swisspost/design-system-styles-primeng Major
@swisspost/design-system-components-react Major
@swisspost/design-system-components-angular Major
@swisspost/design-system-tokens Major
@swisspost/design-system-icons Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@swisspost-bot
Copy link
Contributor

swisspost-bot commented Oct 23, 2025

Related Previews

@sandra-post
Copy link
Contributor

@leagrdv Design review done, all good.

@sonarqubecloud
Copy link

Copy link
Contributor

@alizedebray alizedebray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On mobile the step indicators are shrinking instead of the lines:
image

navigatableSteps: {
name: 'Navigatable Steps',
description: 'Defines which steps in the current process the user can navigate to.',
currentStepNumber: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use the argTypes generated from Stencil?

return (
<Host data-version={version} role="listitem">
<span class="stepper-item-content">
<span>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this span needed?

// Update mobile label to show "Step N: ..." on mobile
const mobileLabel = el.querySelector('.step-mobile-label');
if (mobileLabel && this.stepLabel) {
mobileLabel.textContent = `${this.stepLabel} ${i + 1}:`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since is can differ from language to language, I would let users give the full label instead of constructing it. For example in French the rule is to have a space before the colon while in other languages there is none.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[web component] Stepper (Horizontal)

5 participants