Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D design
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Primer
  • design
  • Merge requests
  • !451
An error occurred while fetching the assigned milestone of the selected merge_request.

Update numeric table cell guidance

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Mike Perrotti requested to merge mp/numeric-table-cells into main 2 years ago
  • Overview 2
  • Commits 1
  • Pipelines 0
  • Changes 1

Mentions using tabular figures for easier scanning/comparing in a column.

Compare
  • main (base)

and
  • latest version
    183185f9
    1 commit, 2 years ago

1 file
+ 2
- 4

    Preferences

    File browser
    Compare changes
content/components/data-table.mdx
+ 2
- 4
  • View file @ 183185f9

  • Edit in single-file editor

  • Open in Web IDE


@@ -75,8 +75,6 @@ The pagination footer shows the user where they are in relation to the total num
### Best practices
<!-- TODO: apply a layout -->
<Box display="grid" gridTemplateColumns={['', '', '', '', '18rem 1fr']} gridGap={[0, 0, 0, 0, 3]} sx={{'> h4': { margin: 0 }}}>
#### Order rows intuitively
@@ -110,9 +108,9 @@ Cells should represent data in the shortest possible format. This makes the tabl
The column header should accurately represent the data point rendered in the column's cells. It would also be unclear which data point is being used when sorting.
#### Right-align numeric values
#### Make numbers easier to compare
This makes it easier to compare the numbers in a column
Right-align numeric values and use the `tabular-num` [font variant](https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-numeric) when possible.
#### Avoid wrapping or truncation of cell content as much as possible
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
0
0 participants
Reference:
Source branch: mp/numeric-table-cells

Menu

Explore Projects Groups Snippets