feat: cmd-111 support no header demo in mobile table#323
Conversation
…-mobile-table-ui--support-no-header-demo
|
@R-Tomas-Gonzalez, our internal discussion about an even cleaner way to write this led to a rabbit hole that is CMD-84. I fear any clean-up of the code relevant to this change will lead to me starting that task prematurely. How about you evaluate whether this bug fix both works and is a general improvement, then I'll tackle CMD-84 (in a branch off of Details
When I attempted to go further, I was challenged by the inconsistent overlap between "paragraph" table and "has data col" tables, and the undoing of borders on small-screen that should instead be adding the borders only for wide screen. At that point, I could tell I would be balancing too much refactor in my head for a missing demo feature. |
|
Renamed |
R-Tomas-Gonzalez
left a comment
There was a problem hiding this comment.
Looks good. Intention is to build off of this in the future to clean it up.
|
Yes, via CMD-84. |
Overview
Support the "No Header" table in a responsive table at a narrow screen width. I.e.
Related
Changes
getColFromRowtodataColAttr; it now conditionally prints attribute too, not just valuetable:has([data-col])to:--table-has-data-col, so the selectors can be edited in one place<thead>table:not(:has(thead))to mobile table UI (via custom selector:--table-has-data-col)has-data-colsTesting
UI
1 & 2 — "No Header" on Narrow Screen
3 & 4 "No Header" on Wide Screen
5 & 6 — "Basic" & "Nested" on Wide & Narrow Screen