Open nsolerieu opened 1 month ago
Discussed at Planning:
This is not the data table component, we do not have the same control since the user is the one shaping the table DOM structure - thsu we can't create a "shell" only style the native HTML markup
Design notes:
Desktop | Mobile |
---|---|
Test with real content
Without overriding the native behavior of the table
markup, things will squich on mobile which is not working on mobile and could use a collapse specific styling with sticky header.
Desktop | Mobile |
---|---|
Desktop | Mobile |
---|---|
The only mobile solution to fix this mobile issue is to collapse and keep the table header for context like the example here. This is achieve by adding a data-label
to each <td>
Desktop | Mobile |
---|---|
We decided to not pursue the suggested approach for these reasons:
Problem
SWP asked for getting HTML table support for SEO and solution page using the
Prose
component. It is not supported as of todayHistorical context:
Solution
Per discussion between Site and Primer Brand, we would like to implement basic styling (aka- support) for of the
<table>
markup.Here is an in-situ suggestion using our text, color, border primitives
We cant restrict the amount of column but would highly suggest to limit to 5 or perhaps fix the min-width of
<td>
and have anoverflow-y: scroll
I do not recommend using a boxed design to minimize the visual noise and fit the editorial styling we have been moving toward brand-wise
Urgency
No major urgency, SWP is working on scaling the template and could use capability anytime