Tables

Tables should scroll when overlapping, and collapse when the screen is too narrow.

Notes

https://designsystem.digital.gov/components/table/

https://www.w3.org/WAI/WCAG21/Understanding/reflow.html

https://css-tricks.com/responsive-data-tables/

https://css-tricks.com/responsive-data-table-roundup/

https://www.w3.org/TR/CSS2/tables.html

Table wrapper

https://codepen.io/mortona42/pen/WNYmLEB

Class added in table.html.twig.

.overflow-x-scroll {
  overflow-x: scroll;
}

Table CSS

Content

Link underline shows on hover only.

Use title class to hide link style.

How to prevent label wrapping (Content type).

Mantra admin content table

Manage fields

This doesn't really need to be a table, however Manage Form/Display uses tabledrag so it will be consistent at least.

Not mobile friendly.

Drupal mantra manage fields table

Extensions

Some admin styles taking over the table.

Drupal mantra theme extensions table


Retrograde.com parts variations

https://www.retrograde.bike/taxonomy/term/75

uses .views-breakout-content utility class.

.breakout (in uno config) sets full view width at lg breakpoint.

Table should scroll on overflow (might only work when under lg breakpoint, needs testing).

Retrograde.com parts table w/ breakout style

Issues

Modules to try

Ckeditor Responsive Table
Uses Tabled library.

Responsive Tables Filter
Uses tablesaw (jQuery).

Responsive Table Filter
Alistapart tables horizontal scrolling.

Responsive Wrappers
WYSIWYG content wrappers.

Simple Responsive Table
Outdated.

View Responsive Table
Outdated.