ba-web-components/test-harness/views/tooltip.ejs
Alan Bridgeman 5024375e20
Some checks failed
Build, Test, and Publish (to Private NPM Registry) UI Components Library / publish (push) Failing after 52m26s
Inital code commit
2026-05-13 01:39:35 -05:00

40 lines
No EOL
1.6 KiB
Text

<!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&apos;t it cool!
</span>
</main>
</body>
</html>