Skip to content

Commit

Permalink
chore(styles): used tokens for legend styling (#4092)
Browse files Browse the repository at this point in the history
Co-authored-by: Oliver Schürch <[email protected]>
Co-authored-by: Travaglini Alessio <[email protected]>
Co-authored-by: Alizé Debray <[email protected]>
  • Loading branch information
4 people authored Dec 4, 2024
1 parent f854d6e commit 534a2ec
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/tidy-paws-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-styles': patch
---

Updated fieldset-legend styles with Design Tokens.
10 changes: 7 additions & 3 deletions packages/styles/src/elements/fieldset-legend.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,19 @@
tokens.$default-map: elements.$post-legend;

legend {
margin-bottom: tokens.get('legend-margin-block-end');
font-weight: tokens.get('legend-font-weight');
line-height: tokens.get('legend-line-height');
width: 100%;

&.large {
font-size: tokens.get('legend-large-font-size');
//margin-block-start: tokens.get('legend-large-margin-block-start');
padding-block-start: tokens.get('legend-large-padding-block-start');
padding-block-end: calc(
tokens.get('legend-large-padding-block-end') - tokens.get('legend-large-border-width')
);
margin-block-end: tokens.get('legend-large-margin-block-end');
padding-block-end: tokens.get('legend-large-padding-block-end');
//border-bottom: tokens.get('legend-large-border-bottom');
border-bottom: tokens.get('legend-large-border-width') tokens.get('legend-large-border-color')
tokens.get('legend-large-border-style');
}
}

0 comments on commit 534a2ec

Please sign in to comment.