Skip to content

Commit

Permalink
chore(styles): deprecate topic teaser
Browse files Browse the repository at this point in the history
  • Loading branch information
leagrdv committed Dec 20, 2024
1 parent ea6e622 commit 9d473c6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/metal-rice-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-styles': patch
---

Deprecated the topic teaser css component.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ import './topic-teaser.styles.scss';
</nav>
</div>

<div className="alert alert-warning">
The topic teaser is deprecated and will be removed in a future version.
</div>

<div className="lead">
Topic Teaser provides a flexible and responsive content container with options to align the image,
adding topic content and links as well as contextual background colors.
Expand All @@ -24,7 +28,11 @@ If you use multiple topic teasers on one page, each topic teaser must have a dif

</div>

<Canvas className="topic-teaser-full-width-storybook" sourceState="shown" of={TopicTeaserStories.Default} />
<Canvas
className="topic-teaser-full-width-storybook"
sourceState="shown"
of={TopicTeaserStories.Default}
/>

<div className="hide-col-default container">
<Controls of={TopicTeaserStories.Default} />
Expand Down

0 comments on commit 9d473c6

Please sign in to comment.