Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ It generates reference pages and searchable guides from `docs/guide/` in
`public/api/`. That generated directory is ignored by Git and excluded from npm.
Do not edit the generated HTML or include private implementation classes.

`npm run dev` generates the documentation before starting Vite; open `/api/` or
`npm run dev` generates the documentation before starting Vite; open `/api/index.html` or
use the demo navigation. After editing guides or API comments, rerun
`npm run build:docs` and refresh. `npm run build:demo` regenerates and copies the
site to `dist/demo/api/`, so the existing Pages workflow publishes it with the demo.
Expand Down
5 changes: 4 additions & 1 deletion demo/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ document.addEventListener('pointercancel', () => {
settingsPressOutside = false;
});
document.addEventListener('click', (event) => {
if (settingsPressOutside && outsideSettings(event)) {
// The native backdrop button handles touch and keyboard activation itself.
// Only the modal dialog backdrop needs a separate outside-press guard.
const backdropActivation = event.target === settingsBackdrop;
if ((settingsPressOutside || backdropActivation) && outsideSettings(event)) {
settingsDialog.close();
}
settingsPressOutside = false;
Expand Down
6 changes: 6 additions & 0 deletions demo/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,12 @@ footer {
position: fixed;
inset: 0;
z-index: 20;
width: 100%;
height: 100%;
padding: 0;
border: 0;
border-radius: 0;
cursor: default;
background: rgb(10 12 15 / 72%);
backdrop-filter: grayscale(1);
-webkit-backdrop-filter: grayscale(1);
Expand Down
Binary file modified docs/images/smithkit-preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion examples/angular/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<nav aria-label="Examples navigation">
<a href="../index.html">← All examples</a
><a href="https://rosek86.github.io/smithkit/">Full demo</a>
<a href="https://rosek86.github.io/smithkit/api/">API documentation</a>
<a href="https://rosek86.github.io/smithkit/api/index.html">API documentation</a>
</nav>
<header>
<p class="eyebrow">SMITHKIT EXAMPLES</p>
Expand Down
2 changes: 1 addition & 1 deletion examples/appearance/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<nav aria-label="Examples navigation">
<a href="../index.html">← All examples</a
><a href="https://rosek86.github.io/smithkit/">Full demo</a>
<a href="https://rosek86.github.io/smithkit/api/">API documentation</a>
<a href="https://rosek86.github.io/smithkit/api/index.html">API documentation</a>
</nav>
<header>
<p class="eyebrow">SMITHKIT EXAMPLES</p>
Expand Down
2 changes: 1 addition & 1 deletion examples/basic/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<a href="https://github.com/rosek86/smithkit/blob/main/examples/basic/main.ts"
>View TypeScript source</a
>
<a href="https://rosek86.github.io/smithkit/api/">API documentation</a>
<a href="https://rosek86.github.io/smithkit/api/index.html">API documentation</a>
</nav>
<header>
<p class="eyebrow">SMITHKIT EXAMPLES</p>
Expand Down
2 changes: 1 addition & 1 deletion examples/export/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<nav aria-label="Examples navigation">
<a href="../index.html">← All examples</a
><a href="https://rosek86.github.io/smithkit/">Full demo</a>
<a href="https://rosek86.github.io/smithkit/api/">API documentation</a>
<a href="https://rosek86.github.io/smithkit/api/index.html">API documentation</a>
</nav>
<header>
<p class="eyebrow">SMITHKIT EXAMPLES</p>
Expand Down
4 changes: 2 additions & 2 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<nav aria-label="Examples navigation">
<a href="https://rosek86.github.io/smithkit/">← Full demo</a
><a href="https://github.com/rosek86/smithkit/tree/main/examples">Source on GitHub</a>
<a href="https://rosek86.github.io/smithkit/api/">API documentation</a>
<a href="https://rosek86.github.io/smithkit/api/index.html">API documentation</a>
</nav>
<header>
<p class="eyebrow">SMITHKIT EXAMPLES</p>
Expand Down Expand Up @@ -73,7 +73,7 @@ <h1>One example, one task.</h1>
</div>
<footer>
All examples import from <code>smithkit</code>.
<a href="https://rosek86.github.io/smithkit/api/">Library documentation</a>
<a href="https://rosek86.github.io/smithkit/api/index.html">Library documentation</a>
</footer>
</main>
</body>
Expand Down
2 changes: 1 addition & 1 deletion examples/large-trace/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<nav aria-label="Examples navigation">
<a href="../index.html">← All examples</a
><a href="https://rosek86.github.io/smithkit/">Full demo</a>
<a href="https://rosek86.github.io/smithkit/api/">API documentation</a>
<a href="https://rosek86.github.io/smithkit/api/index.html">API documentation</a>
</nav>
<header>
<p class="eyebrow">SMITHKIT EXAMPLES</p>
Expand Down
2 changes: 1 addition & 1 deletion examples/markers/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<nav aria-label="Examples navigation">
<a href="../index.html">← All examples</a
><a href="https://rosek86.github.io/smithkit/">Full demo</a>
<a href="https://rosek86.github.io/smithkit/api/">API documentation</a>
<a href="https://rosek86.github.io/smithkit/api/index.html">API documentation</a>
</nav>
<header>
<p class="eyebrow">SMITHKIT EXAMPLES</p>
Expand Down
2 changes: 1 addition & 1 deletion examples/react/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<nav aria-label="Examples navigation">
<a href="../index.html">← All examples</a
><a href="https://rosek86.github.io/smithkit/">Full demo</a>
<a href="https://rosek86.github.io/smithkit/api/">API documentation</a>
<a href="https://rosek86.github.io/smithkit/api/index.html">API documentation</a>
</nav>
<header>
<p class="eyebrow">SMITHKIT EXAMPLES</p>
Expand Down
2 changes: 1 addition & 1 deletion examples/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<nav aria-label="Examples navigation">
<a href="../index.html">← All examples</a
><a href="https://rosek86.github.io/smithkit/">Full demo</a>
<a href="https://rosek86.github.io/smithkit/api/">API documentation</a>
<a href="https://rosek86.github.io/smithkit/api/index.html">API documentation</a>
</nav>
<header>
<p class="eyebrow">SMITHKIT EXAMPLES</p>
Expand Down
2 changes: 1 addition & 1 deletion examples/touchstone/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<nav aria-label="Examples navigation">
<a href="../index.html">← All examples</a
><a href="https://rosek86.github.io/smithkit/">Full demo</a>
<a href="https://rosek86.github.io/smithkit/api/">API documentation</a>
<a href="https://rosek86.github.io/smithkit/api/index.html">API documentation</a>
</nav>
<header>
<p class="eyebrow">SMITHKIT EXAMPLES</p>
Expand Down
8 changes: 7 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,13 @@ <h2 id="comparison-heading">Compare markers</h2>
</div>
<footer>Smithkit</footer>
</main>
<div id="settings-backdrop" hidden aria-hidden="true"></div>
<button
id="settings-backdrop"
type="button"
tabindex="-1"
aria-label="Close chart settings"
hidden
></button>
<dialog
id="chart-settings"
aria-labelledby="chart-settings-title"
Expand Down
Loading