docs: fix focus demo options
This commit is contained in:
@@ -33,7 +33,7 @@ export default {
|
|||||||
Text,
|
Text,
|
||||||
Focus.configure({
|
Focus.configure({
|
||||||
className: 'has-focus',
|
className: 'has-focus',
|
||||||
nested: true,
|
mode: 'all',
|
||||||
}),
|
}),
|
||||||
Code,
|
Code,
|
||||||
BulletList,
|
BulletList,
|
||||||
@@ -45,7 +45,7 @@ export default {
|
|||||||
The focus extension adds a class to the focused node only. That enables you to add a custom styling to just that node. By default, it’ll add <code>.has-focus</code>, even to nested nodes.
|
The focus extension adds a class to the focused node only. That enables you to add a custom styling to just that node. By default, it’ll add <code>.has-focus</code>, even to nested nodes.
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Nested elements (like this list item) will be focused with the default setting of <code>nested: true</code>.</li>
|
<li>Nested elements (like this list item) will be focused with the default setting of <code>mode: all</code>.</li>
|
||||||
<li>Otherwise the whole list will get the focus class, even when just a single list item is selected.</li>
|
<li>Otherwise the whole list will get the focus class, even when just a single list item is selected.</li>
|
||||||
</ul>
|
</ul>
|
||||||
`,
|
`,
|
||||||
|
|||||||
Reference in New Issue
Block a user