fix(HAI-067): fix tooltip stacking context and background variable

- Add position: relative and z-index: 1 to .card-meta so dep tooltip renders above .card-title
- Change tooltip background from var(--bg-card) to var(--surface) for correct theming
- Add test asserting data-tooltip attribute contains dependency IDs as readable string
This commit is contained in:
Dustin Byrne
2026-03-26 00:08:23 -04:00
parent bbd54ca4b8
commit cac3bad367
2 changed files with 14 additions and 1 deletions

View File

@@ -154,6 +154,16 @@ describe("TaskCard dependency tooltip", () => {
const deps = ["HAI-001", "HAI-002", "HAI-003", "HAI-004"];
expect(computeDepTooltip(deps)).toBe("HAI-001, HAI-002, HAI-003, HAI-004");
});
it("data-tooltip attribute contains dependency IDs as a readable string", () => {
const deps = ["HAI-005", "HAI-012"];
const tooltip = computeDepTooltip(deps);
expect(tooltip).toBeDefined();
// Each dependency ID should appear in the tooltip
for (const dep of deps) {
expect(tooltip).toContain(dep);
}
});
});
describe("TaskCard queued badge logic", () => {