Skip to content

Commit

Permalink
Demo: Improve tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
slevithan committed Nov 7, 2024
1 parent 6165af1 commit e9e61c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions demo/demo.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ label .tip::after {
}

label .tip-sm {
width: 130px;
margin-left: -65px;
width: 140px;
margin-left: -70px;
}

label .tip-md {
Expand Down
8 changes: 4 additions & 4 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h2>Try it</h2>
</select>
<code>target</code>
<img src="https://upload.wikimedia.org/wikipedia/commons/9/99/Unofficial_JavaScript_logo_2.svg" width="15" height="15">
<span class="tip tip-lg">JS version potentially required; ES2024 regexes universally supported since 2023</span>
<span class="tip tip-lg"><code>ES2024</code> regexes need Node.js 20 or any 2023-era browser</span>
</label>
<label>
<select id="option-accuracy" onchange="setOption('accuracy', this.value)">
Expand All @@ -54,7 +54,7 @@ <h2>Try it</h2>
<option value="loose">loose</option>
</select>
<code>accuracy</code>
<span class="tip tip-lg">Default permits a few close approximations to support additional features</span>
<span class="tip tip-lg"><code>default</code> permits a few close approximations to support additional features</span>
</label>
</p>
<details>
Expand All @@ -81,7 +81,7 @@ <h2>Try it</h2>
<label>
<input type="checkbox" id="option-avoidSubclass" onchange="setOption('avoidSubclass', this.checked)">
<code>avoidSubclass</code>
<span class="tip tip-lg">Disables advanced emulation strategies that rely on a <code>RegExp</code> subclass</span>
<span class="tip tip-lg">Disables advanced emulation strategies for <code>\G</code> that rely on a <code>RegExp</code> subclass</span>
</label>
</p>
<p>
Expand All @@ -97,7 +97,7 @@ <h2>Try it</h2>
<label>
<input type="checkbox" id="option-verbose" onchange="setOption('verbose', this.checked)">
<code>verbose</code>
<span class="tip tip-lg">Disables optimizations that simplify the pattern</span>
<span class="tip tip-lg">Disables optimizations that simplify the pattern without changing the meaning</span>
</label>
</p>
<p>
Expand Down

0 comments on commit e9e61c2

Please sign in to comment.