Closed (fixed)
Project:
USWDS Ckeditor Integration
Version:
3.1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Sep 2024 at 23:52 UTC
Updated:
1 Nov 2024 at 18:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
smustgrave commentedDid you apply the filters on the text formatter?
Comment #3
bernardm28 commentedI did, but USWDS does not include the data label. So the table will be stacked but the table headings will be hidden.
https://designsystem.digital.gov/components/table/#component-variants-table

They say, that part of the implementation they left up to the developers due to the complexity of how many variations there can be I imagine.
Comment #5
bernardm28 commentedHere is what the before and after look like.
Before

After

The code above does make a few assumptions but for basic scenarios it gets you there and might be easier to modify for more advanced used cases.
Comment #6
bernardm28 commentedPretty cool how USWDS is stacking the tables with just CSS. But kind of unfortunate that means somethings they could not solve, like the table headings.
Comment #7
bernardm28 commentedComment #8
bernardm28 commentedComment #9
smustgrave commentedThe filter should be fixed vs aftermarket in this case
Comment #10
smustgrave commented1 are you setting the table header in the ckeditor?
Is the uswds stackable filter turned on.
Not able to reproduce.
Comment #14
smustgrave commentedActually did find a bug where scope="row" was not being set.
#3481732: Stacked table without header causes warnings I'm going to log an error that a table is missing a header and add a warning on the text formatter if you don't set the filter.