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:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user