Skip to content

Commit e1e7034

Browse files
authored
Button: add XL size (#277)
* Button: add XL size * Bump version to v3.1.2
1 parent f9604e1 commit e1e7034

File tree

5 files changed

+16
-3
lines changed

5 files changed

+16
-3
lines changed

@stellar/design-system-website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@docusaurus/remark-plugin-npm2yarn": "^3.7.0",
2727
"@docusaurus/theme-live-codeblock": "^3.7.0",
2828
"@mdx-js/react": "^3.1.0",
29-
"@stellar/design-system": "^3.1.1",
29+
"@stellar/design-system": "^3.1.2",
3030
"clsx": "^2.1.1",
3131
"prism-react-renderer": "^2.4.1",
3232
"react": "^18.3.1",

@stellar/design-system-website/src/componentPreview/buttonPreview.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ export const buttonPreview: ComponentPreview = {
5050
value: "lg",
5151
label: "LG",
5252
},
53+
{
54+
value: "xl",
55+
label: "XL",
56+
},
5357
],
5458
},
5559
{

@stellar/design-system/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stellar/design-system",
3-
"version": "3.1.1",
3+
"version": "3.1.2",
44
"author": "Stellar Development Foundation <hello@stellar.org>",
55
"description": "Components for Stellar Development Foundation’s design system",
66
"license": "Apache-2.0",

@stellar/design-system/src/components/Button/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface ButtonProps {
1717
| "error"
1818
| "success";
1919
/** Size of the button */
20-
size: "sm" | "md" | "lg";
20+
size: "sm" | "md" | "lg" | "xl";
2121
/** Label of the button */
2222
children?: string | React.ReactNode;
2323
/** Icon element */

@stellar/design-system/src/components/Button/styles.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,15 @@
313313
--Button-border-radius: #{pxToRem(8px)};
314314
}
315315

316+
&--xl {
317+
--Button-height: #{pxToRem(48px)};
318+
--Button-font-size: #{pxToRem(16px)};
319+
--Button-line-height: #{pxToRem(24px)};
320+
--Button-padding-vertical: #{pxToRem(12px)};
321+
--Button-padding-horizontal: #{pxToRem(16px)};
322+
--Button-border-radius: #{pxToRem(8px)};
323+
}
324+
316325
// Custom
317326
&--full-width {
318327
width: 100%;

0 commit comments

Comments
 (0)