Skip to content

Commit

Permalink
Merge pull request #699 from WestpacGEL/New-layout-category
Browse files Browse the repository at this point in the history
New layout category
  • Loading branch information
samithaf authored Jan 31, 2024
2 parents 82f9e84 + 1775c39 commit 59d3008
Show file tree
Hide file tree
Showing 24 changed files with 116 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
```jsx
() => <Table>
<TableHeader>
<TableHeaderRow>
<TableHeaderCell>Token</TableHeaderCell>
<TableHeaderCell>Value</TableHeaderCell>
<TableHeaderCell>Tailwind prefix</TableHeaderCell>
</TableHeaderRow>
</TableHeader>
<TableBody>
<TableRow>
<TableCell>xsl</TableCell>
<TableCell>0px and up</TableCell>
<TableCell>xsl:</TableCell>
</TableRow>
<TableRow>
<TableCell>sm</TableCell>
<TableCell>768px and up</TableCell>
<TableCell>sm:</TableCell>
</TableRow>
<TableRow>
<TableCell>md</TableCell>
<TableCell>992 and up</TableCell>
<TableCell>md:</TableCell>
</TableRow>
<TableRow>
<TableCell>lg</TableCell>
<TableCell>1200 and up</TableCell>
<TableCell>lg:</TableCell>
</TableRow>
<TableRow>
<TableCell>xl</TableCell>
<TableCell>1900 and up</TableCell>
<TableCell>xl:</TableCell>
</TableRow>
</TableBody>
</Table>
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
```jsx
() => <Table>
<TableHeader>
<TableHeaderRow>
<TableHeaderCell>Token</TableHeaderCell>
<TableHeaderCell>Value</TableHeaderCell>
<TableHeaderCell>Tailwind prefix</TableHeaderCell>
</TableHeaderRow>
</TableHeader>
<TableBody>
<TableRow>
<TableCell>xsl</TableCell>
<TableCell>0px and up</TableCell>
<TableCell>xsl:</TableCell>
</TableRow>
<TableRow>
<TableCell>sm</TableCell>
<TableCell>768px and up</TableCell>
<TableCell>sm:</TableCell>
</TableRow>
<TableRow>
<TableCell>md</TableCell>
<TableCell>992 and up</TableCell>
<TableCell>md:</TableCell>
</TableRow>
<TableRow>
<TableCell>lg</TableCell>
<TableCell>1200 and up</TableCell>
<TableCell>lg:</TableCell>
</TableRow>
<TableRow>
<TableCell>xl</TableCell>
<TableCell>1900 and up</TableCell>
<TableCell>xl:</TableCell>
</TableRow>
</TableBody>
</Table>
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Breakpoints
description: >-
Breakpoints are a set of predefined viewport widths that can be used to change
the layout of a page to ensure it accommodates different devices.
namedExport:
discriminant: false
excludeFromNavbar: false
design:
- title:
name: Breakpoint tokens
slug: breakpoint-tokens
noTitle: false
accessibility:
- title:
name: Accessibility features
slug: accessibility-features
relatedComponents:
- title: Grid
slug: foundation/layout/grid
- title: Spacing
slug: foundation/layout/spacing
code:
- title:
name: Development examples
slug: development-examples
noTitle: false
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ accessibility:
name: Accessibility features
slug: accessibility-features
relatedComponents:
- title: Grid
slug: /foundation/grid
- title: Breakpoints
slug: foundation/layout/breakpoints
- title: Spacing
slug: foundation/layout/spacing
code:
- title:
name: Development examples
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
No specific accessibility features required.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
```tsx
() => {
return <Table>
<TableCaption>
GEL spacing for <strong>margin</strong>
</TableCaption>
<TableHeader>
<TableHeaderRow>
<TableHeaderCell>Token</TableHeaderCell>
Expand Down Expand Up @@ -44,9 +41,6 @@
() => {
const SPACING_UNIT = 6;
return <Table>
<TableCaption>
GEL spacing for <strong>padding</strong>
</TableCaption>
<TableHeader>
<TableHeaderRow>
<TableHeaderCell>Token</TableHeaderCell>
Expand Down Expand Up @@ -83,9 +77,6 @@
() => {
const SPACING_UNIT = 6;
return <Table>
<TableCaption>
GEL spacing classes for <strong>gap</strong>
</TableCaption>
<TableHeader>
<TableHeaderRow>
<TableHeaderCell>Token</TableHeaderCell>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ The gap property defines the size of the gap between the rows and between the co
```tsx
() => {
return <Table>
<TableCaption>
GEL spacing classes for <strong>gap</strong>
</TableCaption>
<TableHeader>
<TableHeaderRow>
<TableHeaderCell>Token</TableHeaderCell>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ The margin properties are used to create space around elements, outside of any d
```tsx
() => {
return <Table>
<TableCaption>
GEL spacing for <strong>margin</strong>
</TableCaption>
<TableHeader>
<TableHeaderRow>
<TableHeaderCell>Token</TableHeaderCell>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ The padding properties are used to generate space around an element's content, i
```tsx
() => {
return <Table>
<TableCaption>
GEL spacing for <strong>padding</strong>
</TableCaption>
<TableHeader>
<TableHeaderRow>
<TableHeaderCell>Token</TableHeaderCell>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ description: >-
and heights of the spaces used around and within components.
namedExport:
discriminant: false
excludeFromNavbar: true
excludeFromNavbar: false
design:
- title:
name: Design system spacing tokens
slug: user-experience
noTitle: false
- title:
name: Spacing for margin
slug: spacing-for-margin
name: Margin spacing
slug: margin-spacing
noTitle: false
- title:
name: Spacing for padding
slug: spacing-for-padding
name: Padding spacing
slug: padding-spacing
noTitle: false
- title:
name: Spacing for gap
slug: spacing-for-gap
name: Gap spacing
slug: gap-spacing
noTitle: false
accessibility:
- title:
Expand All @@ -29,6 +29,8 @@ accessibility:
relatedComponents:
- title: Grid
slug: foundation/grid
- title: Breakpoints
slug: foundation/layout/breakpoints
code:
- title:
name: Development examples
Expand Down

0 comments on commit 59d3008

Please sign in to comment.