Components

Data Table

Overview

Data Tables present raw data sets and lend meaning to the data, while maintaining that the data is readable, scannable, and easily comparable.

Variants

Include a heading within the Modal that mirrors the action or button that was clicked by the user. Headers include a close button “x” in the upper right-hand corner of the Modal.

cra-tax-receipting---final-revisions-pending-list-tab

Detail Page tables are very similar to List Page tables, but do not offer column sorting or bulk selection. There may also be more than one Detail Page table on a page, whereas List Page tables can only have one.

invitations-invitations
material-letter-tracking-material-tracking-history

Basic Structure

Created with Sketch. Status Amount Transaction Account Date Added Payment
Created with Sketch. Status Amount Transaction Account Date Added Payment 8px 10px 42px fill: #F4F6F9 100% The padding between columns will always be at least 50px. 4px 130px 24px 30px
  • On a List Page Table the header row will offer a checkbox for bulk selecting. This checkbox will have 30px padding on the left and 24px padding on the right. On a Detail Page Table there will be no checkbox and the first column header will have 30px padding to the left.

 

  • Most columns may be sorted. If sorting is enabled, the left-most column is sorted by default, with a filled background and an indicator displayed in the column header. Tapping the header of the sorting column reverses the sort order, also rotating the sort icon 180 degrees.

 

  • During hover, columns that are sortable will take on the look of the active state to indicate so.
Pending List Tab Copy 3
Pending List Tab Copy 2
  • There is a minimum of 50px padding between columns. Column headers that extend into this padding can be shortened using an ellipsis, while displaying the full name on hover or on hover inside a tooltip.

 

  • By default, our tables should never require a side scroll. However, if a user decides to add more columns to the default layout side scroll will be available to view all columns.

 

  • Names and Links should be prioritized as being the first column on the left. However, there is flexibility as it might not always be most practical to have that information first.

 

  • Words should left align with the header. Numbers should right align with the header.

Rows can expand to show more information about the data. Expansion rows can include summary information, links to detail pages, action buttons, and status information. Some expansion rows may even take the place of detail pages in certain situations.

Group 3

Row States

There are 3 different states for the checkbox;

  • default
  • hover
  • checked
  • expanded

Overview of CSS Classes

Selector
Summary
Parent Selector

Coming