Skip to content
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

chore(documentation): add deprecated message on accent colors #3195

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 5 additions & 0 deletions .changeset/famous-emus-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-documentation': patch
---

Deprecated accent colors.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ Inverted buttons don't need special classes anymore, just use any of the [backgr

### Accent colors

<div className="alert alert-md alert-warning">
<h2 className="alert-heading">The accent colors are deprecated</h2>
<p>The CSS classes to apply to the buttons will be removed in the future.</p>
</div>

There are a number of accent colors that you can apply to buttons instead of the usual colors.

<Canvas of={ButtonStories.AccentColors} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ These colors are also available via the **Sass map** `$signal-background-colors`
</section>

## Accent colors

<div className="alert alert-md alert-warning">
<h2 className="alert-heading">The accent colors are deprecated</h2>
<p>Its CSS and SASS variables will be removed in the future.</p>
</div>

These colors are also available via the **Sass map** `$accent-colors`.

<section className="color-swatch__section">
Expand Down