diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7714339..aefcaf8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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. diff --git a/demo/main.ts b/demo/main.ts index 2ed231f..5191c21 100644 --- a/demo/main.ts +++ b/demo/main.ts @@ -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; diff --git a/demo/style.css b/demo/style.css index 239e840..58e0632 100644 --- a/demo/style.css +++ b/demo/style.css @@ -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); diff --git a/docs/images/smithkit-preview.png b/docs/images/smithkit-preview.png index b1d6e3b..5a55f64 100644 Binary files a/docs/images/smithkit-preview.png and b/docs/images/smithkit-preview.png differ diff --git a/examples/angular/index.html b/examples/angular/index.html index 6541d4c..966cb05 100644 --- a/examples/angular/index.html +++ b/examples/angular/index.html @@ -10,7 +10,7 @@

SMITHKIT EXAMPLES

diff --git a/examples/appearance/index.html b/examples/appearance/index.html index 28d9ca2..8ebe981 100644 --- a/examples/appearance/index.html +++ b/examples/appearance/index.html @@ -10,7 +10,7 @@

SMITHKIT EXAMPLES

diff --git a/examples/basic/index.html b/examples/basic/index.html index 5a9c21a..1b999b4 100644 --- a/examples/basic/index.html +++ b/examples/basic/index.html @@ -12,7 +12,7 @@ View TypeScript source - API documentation + API documentation

SMITHKIT EXAMPLES

diff --git a/examples/export/index.html b/examples/export/index.html index e30b35c..e59d9e8 100644 --- a/examples/export/index.html +++ b/examples/export/index.html @@ -10,7 +10,7 @@

SMITHKIT EXAMPLES

diff --git a/examples/index.html b/examples/index.html index 33d004d..1eeb7ed 100644 --- a/examples/index.html +++ b/examples/index.html @@ -11,7 +11,7 @@

SMITHKIT EXAMPLES

@@ -73,7 +73,7 @@

One example, one task.

diff --git a/examples/large-trace/index.html b/examples/large-trace/index.html index 3c08460..d67e3cb 100644 --- a/examples/large-trace/index.html +++ b/examples/large-trace/index.html @@ -10,7 +10,7 @@

SMITHKIT EXAMPLES

diff --git a/examples/markers/index.html b/examples/markers/index.html index 3112971..4c9c936 100644 --- a/examples/markers/index.html +++ b/examples/markers/index.html @@ -10,7 +10,7 @@

SMITHKIT EXAMPLES

diff --git a/examples/react/index.html b/examples/react/index.html index 8dc5fa8..80c3d23 100644 --- a/examples/react/index.html +++ b/examples/react/index.html @@ -10,7 +10,7 @@

SMITHKIT EXAMPLES

diff --git a/examples/static/index.html b/examples/static/index.html index 7039f6b..e2569eb 100644 --- a/examples/static/index.html +++ b/examples/static/index.html @@ -10,7 +10,7 @@

SMITHKIT EXAMPLES

diff --git a/examples/touchstone/index.html b/examples/touchstone/index.html index cc9b1b9..3b5a04c 100644 --- a/examples/touchstone/index.html +++ b/examples/touchstone/index.html @@ -10,7 +10,7 @@

SMITHKIT EXAMPLES

diff --git a/index.html b/index.html index c4a12ae..bb0d3e9 100644 --- a/index.html +++ b/index.html @@ -182,7 +182,13 @@

Compare markers

Smithkit
- +