Skip to content

Commit 7d87ced

Browse files
authored
fix(ui): use default cursor for mount fallback (#103448)
* fix(ui): use default cursor for mount fallback * test(ui): focus mount fallback cursor coverage
1 parent 74717f6 commit 7d87ced

2 files changed

Lines changed: 35 additions & 1 deletion

File tree

ui/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@
158158
background: transparent;
159159
font: inherit;
160160
font-weight: 700;
161-
cursor: pointer;
162161
}
163162

164163
.mount-fallback__button--primary {

ui/src/components/form-controls.browser.test.ts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,38 @@ describeBrowserLayout("touch-primary form controls", () => {
190190
}
191191
});
192192
});
193+
194+
describeBrowserLayout("mount fallback cursor", () => {
195+
it("uses the default cursor for its controls and the pointer for its real link", async () => {
196+
const browser = await chromium.launch({
197+
executablePath: chromiumExecutablePath,
198+
headless: true,
199+
});
200+
try {
201+
const page = await browser.newPage();
202+
await page.setContent(readStyleSheet("ui/index.html"));
203+
const cursors = await page.evaluate(() => {
204+
const cursor = (selector: string) => {
205+
const node = document.querySelector(selector);
206+
if (!(node instanceof HTMLElement)) {
207+
throw new Error(`Missing cursor fixture ${selector}`);
208+
}
209+
return getComputedStyle(node).cursor;
210+
};
211+
return {
212+
retry: cursor("#openclaw-mount-retry"),
213+
wait: cursor("#openclaw-mount-wait"),
214+
docs: cursor('.mount-fallback__panel a[href^="https://"]'),
215+
};
216+
});
217+
218+
expect(cursors).toEqual({
219+
retry: "default",
220+
wait: "default",
221+
docs: "pointer",
222+
});
223+
} finally {
224+
await browser.close().catch(() => {});
225+
}
226+
});
227+
});

0 commit comments

Comments
 (0)