Tables can be implemented within the Proof of Concept (https://github.com/Lullabot/olivero-poc).

Designs

Figma designs are at https://www.figma.com/file/x5zBLbvoW1jsvyAOt4Gp9I/Olivero-Theme---Public...
Table design small width
Table design large width

Accessibility

According to @andrewmacpherson, the designs are accessible, but we need to account for row-level headers.

andrewmacpherson 13 minutes ago
We don't actually have tables with row-level headers, yet. But I asked Claro to anticipate that we would.

andrewmacpherson 12 minutes ago
Bear in mind, row level header may not be the first column.

mherchel 12 minutes ago
interesting. Would changing the typography of the row-level headers be sufficient?

mherchel 11 minutes ago
or do we also need to add borders?

andrewmacpherson 10 minutes ago
Maybe, just bold text might do it. In fact, I think that is what I'm proposing to bodge into Seven as a quick, non-disruptive fix.

andrewmacpherson 9 minutes ago
You can be as creative as ye like though, early days and all.

mherchel 9 minutes ago
:thumbsup:

andrewmacpherson 9 minutes ago
Basically, something to address both scenarios here. https://www.w3.org/WAI/tutorials/tables/two-headers/

The tables should be responsive

Tables will overflow with horizontal scrolling at smaller screens. To achieve the overflow border, we can use this technique: http://lea.verou.me/2012/04/background-attachment-local/

CommentFileSizeAuthor
olivero-table-rwd.png47.23 KBmherchel
olivero-table-full.png55.36 KBmherchel
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mherchel created an issue. See original summary.

proeung’s picture

Assigned: Unassigned » proeung

mherchel That great news! Thanks for providing the update and creating this ticket! Assigning myself to work on this issue.

andrewmacpherson’s picture

Thanks for grabbing the chat about row-level headers @mherchel

Adding related issues for core modules and Claro theme. Adding the row-level heading feature to Views table displays will be a very powerful tool for site builders.

Note that row-level table headers are possible right now, because authors can create tables in a node body field, assuming the text formats permit them.

Another thing table designs would benefit from is a style for table captions. This could be a caption element, but it's also possible to add table captions using figure/figcaption. A general design for captions could work for both kinds of markup.

On the designs so far, I really like the clear row borders. They are a big help for readability. People with dyslexia often find them useful, and they are a huge help to people using screen magnifier software, when the whole row can't fit in their viewport.

I skim-read the Lea Verou article. Bear in mind that background images/gradients, or box-shadow, won't work in Windows high contrast mode. Real borders will be more robust. There are tricks you can do with a transparent border, so that you see box-shadow in the full colour mode, and a border in windows high-contrast mode. See https://stackoverflow.com/questions/52589391/css-box-shadow-vs-outline/5...

proeung’s picture

@mherchel Here's the PR for the tables POC. Let me know if you have any questions. https://github.com/Lullabot/olivero-poc/pull/18

mherchel’s picture

Status: Active » Needs work

Thanks! Review left.

proeung’s picture

Status: Needs work » Needs review

Changing the status of this issue to match this PR - https://github.com/Lullabot/olivero-poc/pull/18#issuecomment-558273201.

katannshaw’s picture

@mherchel and @proeung: I reviewed the tables in the POC at https://deploy-preview-18--olivero-poc.netlify.com/ and they look great especially when compared to W3C tutorials tables with one header at https://www.w3.org/WAI/tutorials/tables/one-header/

One thing we'll have to plan for in the future are more complex tables when it comes to scope="row" as well as matching id and header attributes.

- Kat

proeung’s picture

@katannshaw Thanks for reviewing my PR! @mherchel I think we can safely merge this PR, can you take a look and let me know if you have any questions before it can be merged? https://github.com/Lullabot/olivero-poc/pull/18#issuecomment-558273201

proeung’s picture

Status: Needs review » Fixed

Marking this issue as fixed since the work has been merged to the master branch of the POC repo. Please create follow-up tickets, if you see any issues. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.