-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
100 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ import * as TableStories from './Table.stories' | |
|
||
<Meta of={TableStories} /> | ||
|
||
# Cell Badge | ||
# Cell CTA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { Meta, Story } from '@storybook/blocks' | ||
|
||
import * as TableStories from './Table.stories' | ||
|
||
<Meta of={TableStories} /> | ||
|
||
# Table Cells | ||
|
||
### Status | ||
|
||
Always use badge components for system status. Reserve tags for actual tags, labels, and environment descriptions (e.g., prod, dev). This ensures clear visual distinction between different information types. | ||
|
||
#### Do | ||
|
||
<img src="images/basic-table.png" /> | ||
|
||
#### Don't | ||
|
||
<img src="images/basic-table.png" /> | ||
|
||
### Cell Aligment | ||
|
||
Statuses are left-aligned to create a cohesive and organized table layout. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Meta, Story } from '@storybook/blocks' | ||
|
||
import * as TableStories from './Table.stories' | ||
|
||
<Meta of={TableStories} /> | ||
|
||
# Table Cells | ||
|
||
### Text | ||
|
||
Text cells support 1 or 2 lines of text. Single-line text cells are typically used for concise information like names, identifiers, or short labels. Two-line text cells are used when additional context is needed and can include entry type or ID, allowing for more detailed information without consuming excessive space. | ||
|
||
[Insert 2 lines example] | ||
|
||
#### Case | ||
|
||
We use sentence case for everything except for titles, which use title case. Exceptions are allowed based on a specific project requirements. | ||
|
||
#### Truncating Long names | ||
|
||
Column with most dynamic and longest copy to typically have flexible. When needed implement cell truncation by ending the text with ellipses and display the full text in a tooltip upon hovering. | ||
|
||
[Insert Example] | ||
|
||
#### Cell Alligment | ||
|
||
Text content within table cells is typically left-aligned to enhance readability and allow for easier scanning of information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Meta, Story } from '@storybook/blocks' | ||
|
||
import * as TableStories from './Table.stories' | ||
|
||
<Meta of={TableStories} /> | ||
|
||
# Table Cells | ||
|
||
### Date and Time | ||
|
||
To ensure clarity for both US and EU audiences, all dates and times should follow a standard global format. All times are displayed in UTC. | ||
|
||
#### Do | ||
|
||
- Date: MMM DD, YYYY (e.g., Sep 12, 2024), which removes any ambiguity between US (MM/DD) and EU (DD/MM) formats. | ||
- Time Zone: UTC (displayed once, somewhere visible on the screen). | ||
|
||
| Event | Start Date (UTC) | End Date (UTC) | | ||
| -------------- | ---------------- | -------------- | | ||
| Product Launch | Sep 12, 2024 | Sep 14, 2024 | | ||
| Black Friday | Nov 29, 2024 | Nov 29, 2024 | | ||
|
||
[Insert link: Displaying a link in a date picker] | ||
|
||
#### Don't | ||
|
||
- **Mix Date Formats**: Do not use different formats such as `MM/DD/YYYY` (e.g., 09/12/2024, which could be interpreted as either September 12 or December 9) or `DD/MM/YYYY` (e.g., 12/09/2024, which can also cause confusion). Stick to the global format `MMM DD, YYYY` (e.g., Sep 12, 2024). | ||
- **Omit the Time Zone**: Never omit the time zone when displaying times, especially when it might lead to user confusion. Example: Instead of just showing "14:30", show "14:30 UTC". | ||
- **Repeat UTC for Each Entry**: Avoid repeating "UTC" in every row of a table or list. Example: Instead of labeling every row "Sep 12, 2024 (UTC)", use a clear table header like `Date (UTC)` to indicate the time zone for all rows. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters