Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-CORE-089

Inline code is a readable tinted pill in text, links, tables and forced themes

When the preview shows inline code, the extension SHALL typeset it as a tinted pill derived from the text colour, compact in table cells and readable with a contrast of at least 4.5:1 in links and in the forced themes.

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

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.

nominalInline code pill
Giveninline code in a paragraph
Whenit is shown
Thenit has a tint and a hairline derived from the text colour, a 4 px radius and a size of 0.875em, scaled inside headings
inline code that wraps over two lines is padded on each line and the line height is unchanged
boundaryInline code in links and tables
InputOutcome
inline code inside a linkthe link colour
inline code inside a link in the forced white or cream themethe link colour on a translucent tint with a contrast of at least 4.5:1
a short identifier in inline code in a sideways-scrolling tablestays on one line, not split
inline code in a table cellcompact padding
boundaryLink colour of inline code in the forced white and cream themes
InputOutcome
properties fixture forced to Cream (visual scenario theme-zoom/v05), inline code after the properties tabletext is rgb(161, 78, 50)
code and tables fixture forced to Cream (visual scenario theme-zoom/v04), inline codetext is rgb(161, 78, 50) on a translucent tint of the same clay colour
properties fixture forced to White (visual scenario theme-zoom/v07), inline code after the properties tabletext is rgb(0, 106, 177), the link blue of White

Implemented in 1

Tested by 1