aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next
diff options
context:
space:
mode:
Diffstat (limited to 'packages/website/ts/@next')
-rw-r--r--packages/website/ts/@next/components/layout.tsx6
-rw-r--r--packages/website/ts/@next/pages/landing.tsx1
2 files changed, 4 insertions, 3 deletions
diff --git a/packages/website/ts/@next/components/layout.tsx b/packages/website/ts/@next/components/layout.tsx
index 47d9173c3..4621d1e8e 100644
--- a/packages/website/ts/@next/components/layout.tsx
+++ b/packages/website/ts/@next/components/layout.tsx
@@ -27,7 +27,7 @@ interface SectionProps {
interface WrapProps {
width?: 'default' | 'full' | 'medium' | 'narrow';
bgColor?: string;
- margin?: number | (string | number)[];
+ margin?: number | ('large' | 'default' | number)[];
}
interface ColumnProps {
@@ -50,10 +50,10 @@ const _getColumnWidth = (args: GetColWidthArgs) => {
};
const _getPadding = (value: number | (string | number)[]) => {
- let padding = '';
+ let padding: string = '';
if (Array.isArray(value)) {
- padding = value.map(val => PADDING_SIZES[val] || '0px').join(' ');
+ padding = value.map(val => PADDING_SIZES[val] || `${val}px`).join(' ');
} else {
padding = `${value}px`;
}
diff --git a/packages/website/ts/@next/pages/landing.tsx b/packages/website/ts/@next/pages/landing.tsx
index 2793993f9..98ee034b9 100644
--- a/packages/website/ts/@next/pages/landing.tsx
+++ b/packages/website/ts/@next/pages/landing.tsx
@@ -69,6 +69,7 @@ export const NextLanding = () => (
</Button>
</WrapCentered>
+ {/* Note you can also pass in a string "large/default" or a number for custom margins */}
<Wrap margin={['large', 0, 0, 0]}>
{/* NOTE: this probably should be withComponent as part of a <dl> */}
<Column colWidth="1/3" noPadding>