dify - ✅(Solved) Fix the consistent of workflow header button [1 pull requests, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
langgenius/dify#35295Fetched 2026-04-16 07:06:36
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
1
Author
Participants
Timeline (top)
cross-referenced ×1

Fix Action

Fixed

PR fix notes

PR #35284: chore: workflow header action button affordances

Description (problem / solution / changelog)

[!IMPORTANT]

  1. Make sure you have read our contribution guidelines
  2. Ensure there is an associated issue and you have been assigned to it
  3. Use the correct syntax to link this PR: Fixes #<issue number>.

Summary

<!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> <!-- If this PR was created by an automated agent, add `From <Tool Name>` as the final line of the description. Example: `From Codex`. -->

fix: https://github.com/langgenius/dify/issues/35295

This change refines the workflow header action buttons to make their behavior and visual affordances more consistent.

  • Aligned the Chat Variables, Environment Variables, and System Variables header buttons with the Run History icon button interaction pattern.
  • Updated their active state styling so selected panels are clearly indicated in both light and dark themes.
  • Added tooltips and accessible labels to those header buttons for better discoverability and accessibility.
  • Increased the size of the grouped action button container and added small spacing between the icons so the group matches neighboring header controls more closely.
  • Added the same tooltip treatment to the Checklist trigger for consistency across header actions.

Screenshots

dark mode: <img width="840" height="446" alt="image" src="https://github.com/user-attachments/assets/07f69386-fecb-42af-b2b3-04912b9d7dd2" /> light mode: <img width="846" height="480" alt="image" src="https://github.com/user-attachments/assets/755d2951-b53d-42a8-acc4-a3c60955c5fe" /> mouse hover: <img width="444" height="226" alt="image" src="https://github.com/user-attachments/assets/d882ae1e-65aa-4da9-87e7-922f17666c2c" />

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran make lint && make type-check (backend) and cd web && pnpm exec vp staged (frontend) to appease the lint gods

Changed files

  • web/app/components/workflow/header/__tests__/chat-variable-button.spec.tsx (modified, +7/-12)
  • web/app/components/workflow/header/__tests__/env-button.spec.tsx (modified, +7/-11)
  • web/app/components/workflow/header/__tests__/global-variable-button.spec.tsx (modified, +7/-11)
  • web/app/components/workflow/header/chat-variable-button.tsx (modified, +31/-13)
  • web/app/components/workflow/header/checklist/__tests__/index.spec.tsx (modified, +6/-0)
  • web/app/components/workflow/header/checklist/index.tsx (modified, +38/-25)
  • web/app/components/workflow/header/env-button.tsx (modified, +31/-13)
  • web/app/components/workflow/header/global-variable-button.tsx (modified, +31/-13)
  • web/app/components/workflow/header/header-in-normal.tsx (modified, +1/-1)
RAW_BUFFERClick to expand / collapse

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

when you open the conversation variable panel in dark theme, it has an active effect:

<img width="836" height="448" alt="Image" src="https://github.com/user-attachments/assets/91689029-b4ad-494d-88bc-8b1c3ee81f62" />

but this effect missing in the light theme:

<img width="848" height="448" alt="Image" src="https://github.com/user-attachments/assets/28bb2c67-0826-4c10-ac2c-1596f95a2fc9" />

and the effect is also inconsistent with other button in the top:

<img width="606" height="620" alt="Image" src="https://github.com/user-attachments/assets/b74e33f3-8f4a-41cd-b5bc-c6aba2850a63" />

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.

extent analysis

TL;DR

The issue can be fixed by ensuring consistent CSS styling for the conversation variable panel across both dark and light themes.

Guidance

  • Review the CSS classes applied to the conversation variable panel to identify any theme-specific styles that may be causing the inconsistency.
  • Compare the CSS styles for the conversation variable panel with other buttons in the top panel to ensure consistency.
  • Check for any missing or overridden CSS rules that may be affecting the active effect in the light theme.
  • Verify that the CSS styles are properly applied to the conversation variable panel in both themes by using the browser's developer tools.

Example

No code snippet is provided as the issue does not contain specific code references.

Notes

The issue seems to be related to CSS styling, and the fix may involve updating or adding CSS rules to ensure consistency across themes. Without access to the codebase, it's difficult to provide a more specific solution.

Recommendation

Apply a workaround by manually inspecting and updating the CSS styles for the conversation variable panel to ensure consistency across both dark and light themes. This approach allows for a targeted fix without requiring a full code review.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING