Closed (fixed)
Project:
USWDS Ckeditor Integration
Version:
2.0.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Jul 2023 at 18:36 UTC
Updated:
4 Aug 2023 at 17:04 UTC
Jump to comment: Most recent
Comments
Comment #2
smustgrave commentedI went off of https://designsystem.digital.gov/components/table/ which I don't see a stripped.
Comment #3
erichhaemmerle commentedThere are actually a few examples on that page. "Scrollable table with horizontal stripes", "Compact scrollable table with horizontal stripes", and "Sortable striped table with various content types". Although it's not required that the table be scrollable, sortable or anything else for that matter to be striped. At the end of the day you just add the class "usa-table--striped" to the main table tag and you get stripes. There are even USWDS settings to specify the colors to use for the stripes for both normal stripes and stripes for the column when sorted.
Right now I will need to have my client decide if ALL tables will either be striped or not and handle the stripes completely in custom CSS. The content editor would not have a way to specify if the table should be striped without clicking the Source button in CkEditor and manually adding the "usa-table--striped" class to the table. Not a big deal, but hate having to tell them to edit source ever.
Anyway, thought it would be cool to add that. I have no idea how hard that would be.
Comment #5
smustgrave commentedTry this.
Comment #6
erichhaemmerle commentedThis is awesome. THANKS!
Comment #8
smustgrave commented