@tjakoen/grain 0.1.15 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -150,6 +150,11 @@
|
|
|
150
150
|
position: absolute; left: calc(var(--u) * 11.7); right: calc(var(--u) * 11.7); top: calc(var(--u) * 3);
|
|
151
151
|
display: flex; justify-content: space-between; align-items: baseline;
|
|
152
152
|
gap: calc(var(--u) * 3); min-width: 0;
|
|
153
|
+
/* the bar is the FIRST child and a slide is inset:0, so without this the current slide paints
|
|
154
|
+
over the bar and eats its clicks. It still looked fine, because a slide is transparent: the
|
|
155
|
+
link was visible and dead. The dots and controls escape it only by sitting after the slides
|
|
156
|
+
in the DOM. */
|
|
157
|
+
z-index: 1;
|
|
153
158
|
}
|
|
154
159
|
.presentation__meta, .presentation__hint, .presentation__legend {
|
|
155
160
|
margin: 0; font-size: calc(var(--u) * 1.4); color: var(--ink-faint);
|
|
@@ -37,6 +37,14 @@ test("fragments move opacity and transform only, never layout", () => {
|
|
|
37
37
|
expect(frag![1]).not.toMatch(/display|height|margin|padding/);
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
+
test("the bar stacks above the slides, or a link in it is visible and dead", () => {
|
|
41
|
+
// the bar is the first child and a slide is inset:0 with z-index auto, so the slide wins the
|
|
42
|
+
// paint order and swallows the clicks. It looks fine, because slides are transparent.
|
|
43
|
+
const bar = css.match(/\.presentation__bar\s*\{([^}]*)\}/);
|
|
44
|
+
expect(bar).not.toBeNull();
|
|
45
|
+
expect(bar![1]).toMatch(/z-index:\s*[1-9]/);
|
|
46
|
+
});
|
|
47
|
+
|
|
40
48
|
test("speaker notes never render on the slide itself", () => {
|
|
41
49
|
expect(css).toMatch(/\.presentation__slide \.slide-notes\s*\{\s*display:\s*none/);
|
|
42
50
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tjakoen/grain",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"description": "GRAIN — an AI-interaction design system where every surface is operable by both a human and an AI through one shared vocabulary.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|