Skip to content

Commit

Permalink
feat(documentation): update figma links (#4419)
Browse files Browse the repository at this point in the history
  • Loading branch information
myrta2302 authored Jan 17, 2025
1 parent fc3a47c commit 23a41b2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/friendly-impalas-reflect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-documentation': minor
---

Updated figma links in the documentation.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const meta: MetaComponent<HTMLPostLanguageSwitchElement> = {
parameters: {
design: {
type: 'figma',
url: 'https://www.figma.com/design/JIT5AdGYqv6bDRpfBPV8XR/Foundations-%26-Components-Next-Level?node-id=7817-52867&t=cw8xiYtq7RyVU0gH-4',
url: 'https://www.figma.com/design/JIT5AdGYqv6bDRpfBPV8XR/Foundations-%26-Components-Next-Level?node-id=7286-40138&t=NlJxMtn6FqcqrXok-4',
},
},
args: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ import * as logoStories from './logo.stories';

<Meta of={logoStories} />

# Post Logo
<div className="docs-title">
# Post Logo

<nav>
<link-design of={JSON.stringify(logoStories)}></link-design>
</nav>
</div>

<p className="lead">Display the Post logo as a clickable link or as a simple image.</p>

Expand All @@ -17,7 +23,6 @@ import * as logoStories from './logo.stories';
The `<post-logo>` element is part of the `@swisspost/design-system-components` package.
For more information, read the [getting started with components guide](/?path=/docs/edfb619b-fda1-4570-bf25-20830303d483--docs).


## Examples

### Height
Expand All @@ -33,4 +38,3 @@ You can use the logo as a link by setting its `url` property.
Ensure that the descriptive text clearly indicates the destination the user will be redirected to after clicking the logo.

<Canvas of={logoStories.Link} />

Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ const meta: MetaComponent<HTMLPostLogoElement> = {
title: 'Foundations/Logo',
tags: ['package:WebComponents'],
component: 'post-logo',
render: renderLogo(),
parameters: {
design: {},
design: {
type: 'figma',
url: 'https://www.figma.com/design/JIT5AdGYqv6bDRpfBPV8XR/Foundations-%26-Components-Next-Level?node-id=7402-44020&t=NlJxMtn6FqcqrXok-4',
},
},
render: renderLogo(),
argTypes: {
url: {
control: {
Expand Down

0 comments on commit 23a41b2

Please sign in to comment.