feat(canvas): 画布工作区 - 以悬浮磨砂面板承载侧栏导航
This commit is contained in:
@@ -88,5 +88,14 @@ test("menu surfaces are explicitly scoped and old account inner overrides are re
|
||||
expect(css).toContain("box-shadow: none !important");
|
||||
expect(css).not.toContain(".ant-modal");
|
||||
expect(globals).not.toContain(".workspace-account-popover .ant-popover-inner");
|
||||
expect(globals).toContain(".ant-select:has(input:focus-visible)");
|
||||
expect(globals).toContain(".ant-select:not(.ant-select-open):has(input:focus-visible)");
|
||||
expect(globals).toContain(".ant-select-dropdown, .ant-dropdown-menu) {\n border: 0 !important;");
|
||||
expect(globals).toContain("body.app-spatial-overlays :where(.ant-dropdown-menu, .ant-select-dropdown, .ant-cascader-menus, .ant-mentions-dropdown) {\n border: 0 !important;");
|
||||
});
|
||||
|
||||
test("shared single-select popup uses a borderless surface instead of a bright focus frame", () => {
|
||||
const select = readFileSync(new URL("../src/components/ui/base/select/select.tsx", import.meta.url), "utf8");
|
||||
expect(select).toContain("rounded-[var(--r-lg)] border-0 bg-surface-strong");
|
||||
expect(select).toContain("focus-visible:ring-1 focus-visible:ring-[var(--control-selected-border)]");
|
||||
expect(select).not.toContain('setPopoverWidth(width + 2)');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user