mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-06 22:49:16 +00:00
test(zigbee): isolate arrow raster probe from pointer tooltip
Keep outline pixel thresholds unchanged; real tooltip coexistence is tested separately. Issue: #802 User-Visible: no
This commit is contained in:
@@ -962,7 +962,11 @@ for (const scale of [0.5, 1, 2]) {
|
||||
const root = card.shadowRoot || card.renderRoot;
|
||||
window.__zigbeeOutlineProbeStyle.textContent = `[data-hp-zigbee-outline-probe] {
|
||||
transform: scale(${scale}) !important; transform-origin: 0 0 !important; background: #fff !important;
|
||||
}`;
|
||||
}
|
||||
/* #802: isolate route ink. At scale=.5 the ordinary pointer tooltip can
|
||||
cover the target arrow; its dark background is not outline coverage.
|
||||
Real tooltip/badge coexistence is witnessed in smoke_zigbee_tooltip_layout. */
|
||||
[data-hp-live-tip] { display: none !important; }`;
|
||||
await new Promise((resolve) => requestAnimationFrame(() => requestAnimationFrame(resolve)));
|
||||
const overlay = root.querySelector('hp-zigbee-topology-overlay');
|
||||
const svg = overlay.shadowRoot.querySelector('svg');
|
||||
|
||||
Reference in New Issue
Block a user