Skip to content

Commit

Permalink
Add a new peta borderRadius size to @sumup/design-tokens (#962)
Browse files Browse the repository at this point in the history
* Add a new peta borderRadius size of 12px to the design tokens

* Update snapshots
  • Loading branch information
Robin Métral authored Jun 3, 2021
1 parent d6cfe1d commit 35ce003
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/smart-boats-camp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@sumup/design-tokens': minor
---

Add a new peta borderRadius size of 12px to `@sumup/design-tokens`.

This size will be used in components including the `Avatar` and the `ImageInput` starting from circuit-ui@v3.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Object {
"giga": "6px",
"kilo": "1px",
"mega": "4px",
"peta": "12px",
"pill": "999999px",
"tera": "8px",
},
Expand Down
1 change: 1 addition & 0 deletions packages/design-tokens/themes/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const borderRadius: BorderRadius = {
mega: '4px',
giga: '6px',
tera: '8px',
peta: '12px',
circle: '100%',
pill: '999999px', // HACK: By providing a very large absolute size, the browser picks the maximum size in one dimension.
};
Expand Down
1 change: 1 addition & 0 deletions packages/design-tokens/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export type BorderRadius = {
mega: string;
giga: string;
tera: string;
peta: string;
circle: string;
pill: string;
};
Expand Down

1 comment on commit 35ce003

@vercel
Copy link

@vercel vercel bot commented on 35ce003 Jun 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.