-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
task/tup-534 Adds in media query for tables #275
Conversation
Specifically not working for nested tables just yet. Also, need to look at paragraph tables with no headers - padding adjusts for headers even when there are none...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pre-review review 😅.
* test: get correct data-col value (INCOMPLETE) * feat: get correct col names & values (INCOMPLETE) * feat: get correct col names & values (SUCCESS) * chore: clean up new helper getColFromRow * refactor: less chars in hbs, more logic in config * fix: remove cruft change * chore: remove console.log * fix: missing cols breaks getColFromRow * chore: simplify previous fix
accomplishes 1 - 3 on design dev mtg notes.(will attach comments).
Makes these adjustments:
Tomas: Did not try this. Will worry about "Nice To Haves" when we have working code. |
we can adjust from here when/if needed. But for now, they are mimiced from desktop to mobile
Awaiting design for feedback on nested tables.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The result looks excellent — just as we expect while we wait for more design instruction. But I know the code to get there is a work in progress. I've left some notes to track the cleanup that can be done.
removing commented out code in fractal. commenting out correct table truncation
peer-programmed with T.G. to confirm Note: one style W.B. thought should go was retained because it does soemthing: table.has-table { & tr :is(td,th):last-child { border-bottom: unset; } }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For approval, please:
- update screenshots
- resolve merge conflicts
- review commented out
@import
incore-styles.docs
Just remember what it's about. I'll try to find a quick fix. Suggestions welcome.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found two bugs.
If, before fixing these, you already have screenshots updated since my last review (today), no need to update again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Third bug found. Not a blocker. Double borders on mobile tables. I have trouble debugging it. I hope to avoid border removal bandaid solution.
Basic Table | Paragraph Table |
---|---|
Details
In table--basic.icss
, there is a —
/* To add bottom border to rows */
tr:not(:last-of-type) > :is(td, th),
:--s-paragraph-table p:not(:last-of-type) {
border-bottom-width: var(--global-border-width--normal);
border-bottom-style: solid;
border-bottom-color: var(--global-color-primary--light);
}
— and a —
@media (max-width: 767px) {
...
tr > :is(td, th):not(:last-of-type),
:--s-paragraph-table p:not(:last-of-type) {
border-bottom-width: var(--global-border-width--normal);
border-bottom-style: solid;
border-bottom-color: var(--global-color-primary--light);
}
...
}
Nested tables avoids double borders by selectively removing them. But maybe there is a solution (a set of selectors, and maybe a use of media queries), for basic and paragraph and nested tables, with less code that only applies the borders as needed, so they need not be removed after the fact.
It is good. |
GitHub trying to be smart by closing this PR for me cuz I said "fixed #275" in another PR… Do only what I say, GitHub. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YES!
This reverts commit aeb1b32.
Overview
Added in mobile view for tables. Columns now go from horizontal to vertical in mobile view.
Replaces the old solution (in Core-Styles) (and any code mentioning APCD like it does) with the new solution (from APCD).
Related
Changes
(Most changes were done in table--basic. Does this need to happen elsewhere? @wesleyboar)
Testing
UI