docs: fix TemplateContentRenderError
- format section isTooltip - removed trailing closing brackets which caused the error Signed-off-by: Tobias Kuppens Groot <tkuppensgroo@uos.de>
This commit is contained in:
parent
6307d606ca
commit
03a90637bd
1 changed files with 7 additions and 10 deletions
|
|
@ -77,17 +77,14 @@ As specified in the [overlay rationale](./rationale.md) there are only two offic
|
||||||
Since most overlays have interactive content the default is set to dialogs. To get a tooltip, you can add `isTooltip` to the config object. This only works for local placement and it also needs to have `handlesAccessibility` activated to work.
|
Since most overlays have interactive content the default is set to dialogs. To get a tooltip, you can add `isTooltip` to the config object. This only works for local placement and it also needs to have `handlesAccessibility` activated to work.
|
||||||
|
|
||||||
```js preview-story
|
```js preview-story
|
||||||
const tooltipConfig = { ...withTooltipConfig() };
|
const tooltipConfig = { ...withTooltipConfig() };
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<demo-el-using-overlaymixin id="tooltip" .config=${tooltipConfig}>
|
<demo-el-using-overlaymixin id="tooltip" .config=${tooltipConfig}>
|
||||||
<button slot="invoker">
|
<button slot="invoker">Hover me to open the tooltip!</button>
|
||||||
Hover me to open the tooltip!
|
|
||||||
</button>
|
|
||||||
<div slot="content" class="demo-overlay">Hello!</div>
|
<div slot="content" class="demo-overlay">Hello!</div>
|
||||||
</demo-el-using-overlaymixin>
|
</demo-el-using-overlaymixin>
|
||||||
`;
|
`;
|
||||||
};
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## trapsKeyboardFocus
|
## trapsKeyboardFocus
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue