Skip to content

feat(segmented-button): add icon and text support #5529

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hugomslv
Copy link
Contributor

πŸ“„ Description

Please include a summary of the changes made in this PR.

πŸš€ Demo

If applicable, please add a screenshot or video to illustrate the changes.


πŸ“ 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

@hugomslv hugomslv requested review from a team as code owners May 21, 2025 05:46
@hugomslv hugomslv requested a review from alizedebray May 21, 2025 05:46
@hugomslv hugomslv linked an issue May 21, 2025 that may be closed by this pull request
5 tasks
Copy link

changeset-bot bot commented May 21, 2025

πŸ¦‹ Changeset detected

Latest commit: 65d214b

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-components Minor
@swisspost/design-system-components-angular-workspace Patch
@swisspost/design-system-components-react Minor
@swisspost/design-system-documentation Patch
@swisspost/design-system-components-angular Minor
@swisspost/design-system-nextjs-integration Patch
@swisspost/design-system-styles Minor
@swisspost/design-system-tokens Minor
@swisspost/design-system-icons Minor
@swisspost/design-system-styles-primeng Minor
@swisspost/internet-header Patch
@swisspost/design-system-styles-primeng-workspace Patch

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

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.

Thank you for the PR! Can you update the PR description with the requested information?

Copy link
Contributor

Choose a reason for hiding this comment

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

You did not add or remove libraries, there shouldn't be any changes to the lock file.

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 change necessary?

@@ -1,6 +1,6 @@
import type { StoryObj } from '@storybook/web-components';
import meta from './segmented-button.stories';
import { html } from 'lit';
import { html, nothing } from 'lit'; // ← ajout de `nothing`
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
import { html, nothing } from 'lit'; // ← ajout de `nothing`
import { html, nothing } from 'lit';

'@swisspost/design-system-components': minor
---

added a version with an icon to the segmented button.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
added a version with an icon to the segmented button.
Added a version with an icon to the segmented button.

@@ -0,0 +1,5 @@
---
'@swisspost/design-system-components': minor
Copy link
Contributor

Choose a reason for hiding this comment

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

You also changed the styles package.

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.

Segmented Button Enhancement
2 participants