@celestia-island/hikari 0.55.445 → 0.55.446
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.
package/package.json
CHANGED
|
@@ -54,8 +54,13 @@
|
|
|
54
54
|
* `data-hk-debug-float-pointer` re-enables pointer-events explicitly
|
|
55
55
|
* (descendants may re-enable under a none ancestor), so exactly the host's
|
|
56
56
|
* own unlock control stays live (the wowsp pin button). The locked visual is
|
|
57
|
-
* the host's: its content fades itself (a static lock, not a hover fade).
|
|
58
|
-
|
|
57
|
+
* the host's: its content fades itself (a static lock, not a hover fade).
|
|
58
|
+
*
|
|
59
|
+
* The marker is the attribute's PRESENCE — the house convention shared with
|
|
60
|
+
* HkModelCard: `interactive={false}` emits `data-interactive` with an EMPTY
|
|
61
|
+
* value, so only a presence selector can match it (an equal-value selector
|
|
62
|
+
* would silently never apply — this block shipped that way once). */
|
|
63
|
+
.hk-debug-float[data-interactive] {
|
|
59
64
|
pointer-events: none;
|
|
60
65
|
|
|
61
66
|
& [data-el="fade"] {
|
|
@@ -870,15 +870,19 @@ describe("HkDebugFloat stylesheet contract", () => {
|
|
|
870
870
|
// interactive={false}: the whole window stops taking pointers, and a
|
|
871
871
|
// host-marked subtree re-enables hit testing explicitly so exactly
|
|
872
872
|
// one control (the unlock affordance) stays live.
|
|
873
|
+
// Presence selector (the HkModelCard convention): the attribute is
|
|
874
|
+
// emitted with an EMPTY value, so an equal-value selector would never
|
|
875
|
+
// match — the regression this guard exists to catch (it shipped once).
|
|
873
876
|
expect(css).toMatch(
|
|
874
|
-
/\.hk-debug-float\[data-interactive
|
|
877
|
+
/\.hk-debug-float\[data-interactive\]\s*\{\s*pointer-events:\s*none;/,
|
|
875
878
|
);
|
|
879
|
+
expect(css).not.toMatch(/\[data-interactive="false"\]/);
|
|
876
880
|
expect(css).toMatch(
|
|
877
|
-
/\.hk-debug-float\[data-interactive
|
|
881
|
+
/\.hk-debug-float\[data-interactive\] \[data-hk-debug-float-pointer\]\s*\{\s*pointer-events:\s*auto;/,
|
|
878
882
|
);
|
|
879
883
|
// The lock is static — a click-through window has no hover to fade on.
|
|
880
884
|
expect(css).toMatch(
|
|
881
|
-
/\.hk-debug-float\[data-interactive
|
|
885
|
+
/\.hk-debug-float\[data-interactive\] \[data-el=fade\]\s*\{\s*transition:\s*none;/,
|
|
882
886
|
);
|
|
883
887
|
});
|
|
884
888
|
|