Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New layout category #699

Merged
merged 14 commits into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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.
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
Loading