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
nominalThe outlined element per target
| Pointer or focus on | Outlined element |
|---|---|
| a list item | the item; for an item of a nested list, the nested item |
| the list itself, outside its items | the whole list |
| a table cell | the cell |
| a fence | the code block |
| any other mapped block | the mapped block |
boundaryPointer or focus leaves
refusalTargets that are not outlined
| Pointer over, edit mode on | Outcome |
|---|---|
| a cell of the properties table | no element receives the outline; the field editors are specified with the frontmatter editing behaviour |
| an element inside an open block editor, for example its frame | no element receives the outline |
nominalLinks are outlined like the text around them
| Pointer over, edit mode on | Outcome |
|---|---|
| a link inside a paragraph, or a paragraph made only of a link | the paragraph is outlined, as a click there opens its editor (SwRS-MDOKFSTUDIO-BLOCK-014) |
| a mapped block that is itself inside a link | that block is outlined |
| the title, header, body or footer of a `:link:` card | only 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 on | Outline | Cursor |
|---|---|---|
| a link in the body of a comment thread | none | pointer |
| a link value of the properties table | none | pointer |
| a link inside an open block editor, in the toolbar or outside any mapped block | none | pointer |
nominalThe text cursor over mapped blocks
| Mode | Pointer over a mapped paragraph | Cursor |
|---|---|---|
| edit mode on | yes | text |
| edit mode off | yes | the default one of the theme, not text |
| edit mode on | a link inside a mapped block whose plain click opens the block editor | text, like the rest of the block |
| edit mode on | any other link | pointer |