Skip to content
New issue

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

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

Already on GitHub? # to your account

Design System Table Styles #514

Open
1 of 2 tasks
chachasikes opened this issue Jul 15, 2022 · 3 comments
Open
1 of 2 tasks

Design System Table Styles #514

chachasikes opened this issue Jul 15, 2022 · 3 comments

Comments

@chachasikes
Copy link
Collaborator

chachasikes commented Jul 15, 2022

Feature

Have a suggestion for a feature?

  • Describe the feature
    DCC needs an HTML table for rendering content.

The Design System needs a table component for rendering tables

Here is a brainstorm of features that have come up for different kinds of tables so far:

  • good UX on mobile & tablet devices
  • accessible
  • translatable
  • appropriate for different volumes of content
  • sticky headers (side and top)
  • easy to use
  • easy to integrate - works in Design System WordPress stacks - static sites (a.k.a. headless), current State Template themes, WordPress 5.9+, Design System Publishing, Classic editor, React UIs and many other editors currently & planned to be in use at the State
  • A single class addition will enable valid, accessible HTML markup to render
  • attributable - easy to
  • downloadable as CSV
  • printer-friendly
  • convertible to PDF (if you print it out - need to confirm accessibility of Save as PDF on multiple devices & hardware)
  • header colors
  • header layouts - subtle, legible
  • table style guide for the design system
  • programmable

We use a data table in the DCC Cannabis Local Ordinances data viz.
Would like a base table style + ability to provide custom code "underneath it"

  • Main table styles = design system table styles (versioned)
  • Custom styles = special modifications to the table that will not cause scope competition when users are applying CSS on a variety of systems - where the markup for the entire project may be available on every page due to system & resource limitations.

Team

  • Scope out how much effort it will take to build
  • We need something up and working today that has at least decent mobile behavior & some QA testing.
  • Then: need a design review
  • Inquire with the Design System governance group on asking various Design System teams if they have created a table yet & aggregate those examples here or in the Design System github.
  • Confirm if the name and class are going to be ds-table
  • Make the CSS includable and versionable in npm if not already
  • Document this & include how to access or alter the header or styles using the accessible color system of the CA Design System.
@chachasikes
Copy link
Collaborator Author

Update:

We need this now for the campaign toolkit.

The plan:

@chachasikes
Copy link
Collaborator Author

See also cagov/design-system#923

@chachasikes
Copy link
Collaborator Author

Did some more work on this in 514-table branch.

Still no code instances that really want this table, we are releasing a grid layout instead for the campaign toolkit.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant