- Issue created by @socalerich
- πΊπΈUnited States smustgrave
I went off of https://designsystem.digital.gov/components/table/ which I don't see a stripped.
- πΊπΈUnited States socalerich
There 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. 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.
- @smustgrave opened merge request.
- Status changed to Needs review
over 1 year ago 6:54pm 20 July 2023 -
smustgrave β
committed c3329727 on 2.0.x
Issue #3374488: Ability to add striped table?
-
smustgrave β
committed c3329727 on 2.0.x
- Status changed to Fixed
over 1 year ago 4:59pm 21 July 2023 Automatically closed - issue fixed for 2 weeks with no activity.