Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-BLOCK-017

The hover outline shows what a click would edit

While edit mode is on, the page SHALL outline with a dashed line the element that a click at the pointer or focus would edit: the item for a list item, the whole list for the list itself, the cell for a table cell, the code block for a fence and else the mapped block, and the preview shows the text cursor over every element that carries a source file and line and over the links whose plain click opens the block editor, while every other link keeps the pointer cursor and gets no outline.

Another outcome at step 1 of path 1 in StRS-MDOKFSTUDIO-BLOCK-003, in the state “Edit mode is on”.

Scenarios 7

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

nominalHovering a list item
Givenedit mode on and a list with an item under the pointer
Whenthe pointer moves over the item
Thenexactly one element, the item (the nearest one, for an item of a nested list), carries data-sphinx-preview-edit-hover
nominalThe outlined element per target
Pointer or focus onOutlined element
a list itemthe item; for an item of a nested list, the nested item
the list itself, outside its itemsthe whole list
a table cellthe cell
a fencethe code block
any other mapped blockthe mapped block
boundaryPointer or focus leaves
Givena list item is outlined
Whenthe pointer leaves it or the focus leaves the item
Thenno element carries the attribute
refusalTargets that are not outlined
Pointer over, edit mode onOutcome
a cell of the properties tableno element receives the outline; the field editors are specified with the frontmatter editing behaviour
an element inside an open block editor, for example its frameno element receives the outline
nominalLinks are outlined like the text around them
Pointer over, edit mode onOutcome
a link inside a paragraph, or a paragraph made only of a linkthe paragraph is outlined, as a click there opens its editor (SwRS-MDOKFSTUDIO-BLOCK-014)
a mapped block that is itself inside a linkthat block is outlined
the title, header, body or footer of a `:link:` cardonly the part under the pointer is outlined, as on a card without link, never the whole card
refusalLinks whose click keeps its own behaviour

Only the links whose plain click opens the block editor (SwRS-MDOKFSTUDIO-BLOCK-014) get the outline and the text cursor.

Pointer over, edit mode onOutlineCursor
a link in the body of a comment threadnonepointer
a link value of the properties tablenonepointer
a link inside an open block editor, in the toolbar or outside any mapped blocknonepointer
nominalThe text cursor over mapped blocks
ModePointer over a mapped paragraphCursor
edit mode onyestext
edit mode offyesthe default one of the theme, not text
edit mode ona link inside a mapped block whose plain click opens the block editortext, like the rest of the block
edit mode onany other linkpointer

Implemented in 3

Tested by 5