-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(styles): create spacing utilities from tokens (#3557)
I recommend reviewing this pull request one commit at a time: - The ***first commit*** (`feat(styles): create spacing utilities from tokens`) is the actual implementation of the new margin, padding, and gap utilities from the token map. - The ***second commit*** (`chore: apply new spacing utilities`) is purely a refactor, where the old spacing utilities are replaced with the newly created ones.
- Loading branch information
1 parent
66546ce
commit 99336ec
Showing
240 changed files
with
1,419 additions
and
1,115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@swisspost/design-system-styles': major | ||
'@swisspost/design-system-documentation': minor | ||
--- | ||
|
||
Updated the margin, padding, and gap utility classes to use the pixel values (1, 2, ... , 112) instead of size names (hair, line, ..., bigger-giant). |
6 changes: 3 additions & 3 deletions
6
packages/components-angular/projects/consumer-app/src/app/app.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<header class="bg-dark"> | ||
<nav class="container py-2"> | ||
<ul class="d-flex flex-wrap row-gap-1 column-gap-3 m-0 list-unstyled"> | ||
<nav class="container py-8"> | ||
<ul class="d-flex flex-wrap row-gap-4 column-gap-16 m-0 list-unstyled"> | ||
<li *ngFor="let route of navigationRoutes"> | ||
<a [routerLink]="route.path">{{ route.title }}</a> | ||
</li> | ||
</ul> | ||
</nav> | ||
</header> | ||
|
||
<main class="container my-3"> | ||
<main class="container my-16"> | ||
<h1>Hurray, it works!</h1> | ||
<router-outlet></router-outlet> | ||
</main> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...emo/src/app/bootstrap/components/alert/action-alert-demo/action-alert-demo.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...mo/src/app/bootstrap/components/background/background-demo/background-demo.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.