Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-CORE-077

A table tints its heading, its even rows and the hovered row

When the page shows a table other than the frontmatter properties table, the preview SHALL tint its heading with the focus border colour at 24%, its even body rows with the editor foreground at 3% and the body row under the pointer with the focus border colour at 12%, with translucent colours that stay below the table handles and let the overflow shading show through.

Part of StRS-MDOKFSTUDIO-CORE-001, outside the paths drawn on its map.

Scenarios 3

The situations the tests check; open one to read it.

nominalA table in the page
Givena page with a table of five body rows, in the Cream, White or Dark theme
Whenthe pointer is away from the table
Thenthe heading cells have the focus border colour at 24%, the even body rows the editor foreground at 3%, the odd body rows no background, and the heading text keeps a contrast of at least 4.5 with the tinted heading on the page background
nominalThe pointer on a row
Giventhe same table
Whenthe pointer moves over an odd or an even body row
Thenthat row has the focus border colour at 12%, in place of its even tint
boundaryTables that keep their own look
InputOutcome
the frontmatter properties table, with the pointer on a rowits body rows and cells keep no background
a table that scrolls sidewaysits overflow shading stays, and the translucent tints let it show through
edit mode, the pointer on a rowthe row handles stay above the tint and still take the press

Implemented in 1

Tested by 2