Files
fusion/packages/dashboard/app/components/WorkflowOptionalStepsDropdown.css
gsxdsm 8d3c15eb10 FN-7193: theme quick-add workflow controls
Theme quick-add optional step controls and workflow phase badges with shared dashboard tokens.

- Apply the dashboard accent token to optional-step checkboxes in the workflow quick-add dropdown.
- Co-locate workflow phase badge styles with the shared badge helper so all badge surfaces inherit themed colors.
- Add CSS regression coverage for themed checkboxes, phase badges, and duplicate badge-style removal.
- Add a patch changeset for the published Fusion package.

Files changed:
 ...fn-7193-quick-add-steps-badge-checkbox-theme.md |  7 ++++
 .../components/WorkflowOptionalStepsDropdown.css   |  6 ++++
 .../app/components/WorkflowResultsTab.css          | 18 ----------
 .../WorkflowOptionalStepsDropdown.test.tsx         | 10 ++++++
 .../__tests__/workflow-phase-badge.test.tsx        | 41 ++++++++++++++++++++++
 .../app/components/workflow-phase-badge.css        | 17 +++++++++
 .../app/components/workflow-phase-badge.tsx        |  2 ++
 7 files changed, 83 insertions(+), 18 deletions(-)

Fusion-Task-Id: FN-7193

Fusion-Task-Lineage: e1db3949-a493-4949-945d-26f567eace89

Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-06-28 09:09:03 -07:00

74 lines
2.0 KiB
CSS

/* WorkflowOptionalStepsDropdown — shared optional-step multi-select. The panel
* renders through a portal (position: fixed) so it is not clipped inside a modal's
* overflow boundary. */
.wf-optional-steps-dropdown {
display: inline-flex;
}
.wf-optional-steps-dropdown-trigger:disabled {
opacity: 0.5;
cursor: default;
}
.wf-optional-steps-dropdown-panel {
position: fixed;
z-index: 1000;
display: flex;
flex-direction: column;
gap: 2px;
max-height: 320px;
overflow-y: auto;
padding: 4px;
/* FNXC:DashboardThemeTokens 2026-06-27-00:00: Optional-step panels share the canonical dropdown surface tokens so Quick Entry, Task Form, and Inline Create render correctly across dark, light, and shadcn color themes without hardcoded hex or px fallbacks. */
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow-lg);
}
.wf-optional-steps-dropdown-option {
display: flex;
align-items: flex-start;
gap: 8px;
padding: 6px 8px;
border-radius: var(--radius-sm);
cursor: pointer;
}
/* FNXC:DashboardThemeTokens 2026-06-28-00:00: Optional-step option checkboxes must use the themed --todo accent so Quick Entry, Task Form, and Inline Create match every dashboard checkbox across dark, light, and shadcn themes. */
.wf-optional-steps-dropdown-option input[type="checkbox"] {
accent-color: var(--todo);
cursor: pointer;
}
.wf-optional-steps-dropdown-option:hover,
.wf-optional-steps-dropdown-option.is-active {
background: var(--card-hover);
}
.wf-optional-steps-dropdown-option:focus-visible {
outline: 2px solid var(--accent);
outline-offset: -2px;
}
.wf-optional-steps-dropdown-option-body {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.wf-optional-steps-dropdown-option-name {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 0.8rem;
font-weight: 600;
}
.wf-optional-steps-dropdown-option-desc {
font-size: 0.72rem;
color: var(--text-muted);
}