Inital code commit
Some checks failed
Build, Test, and Publish (to Private NPM Registry) UI Components Library / publish (push) Failing after 52m26s
Some checks failed
Build, Test, and Publish (to Private NPM Registry) UI Components Library / publish (push) Failing after 52m26s
This commit is contained in:
commit
5024375e20
32 changed files with 5379 additions and 0 deletions
40
test-harness/views/tooltip.ejs
Normal file
40
test-harness/views/tooltip.ejs
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Tooltip Test</title>
|
||||
<link rel="stylesheet" type="text/css" href="<%= componentsStyleHref %>">
|
||||
<script src="<%= componentsScriptSrc %>"></script>
|
||||
</head>
|
||||
<body>
|
||||
<main style="margin-top:12rem;margin-left:4rem">
|
||||
<h1>Tooltip Test</h1>
|
||||
<span>
|
||||
I need a bit of a preamble to make sure the tooltip gets positioned correctly.
|
||||
This is a <%- useComponent('tooltip', {
|
||||
id: 'example-tooltip',
|
||||
srText: 'Example Tooltip',
|
||||
content: `
|
||||
<div>
|
||||
<div class="tooltip-content-header">
|
||||
<h2>Hello World!</h2>
|
||||
</div>
|
||||
<div class="tooltip-content-contents">
|
||||
<p>This is the body of a tooltip</p>
|
||||
<p>It can have multiple lines.</p>
|
||||
<span>
|
||||
<code>Even code snippets</code>,
|
||||
<em>Emphasized</em> or <strong>Strong</strong> text,
|
||||
or even
|
||||
<button>Buttons!</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
}) %>.
|
||||
Isn't it cool!
|
||||
</span>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue