Skip to content

Fix Safari CSS for trigger icons and docs COPY/ADD - #5159

Open
b-pm wants to merge 1 commit into
OpenFn:mainfrom
b-pm:fix/2960-safari-css-trigger-docs
Open

Fix Safari CSS for trigger icons and docs COPY/ADD#5159
b-pm wants to merge 1 commit into
OpenFn:mainfrom
b-pm:fix/2960-safari-css-trigger-docs

Conversation

@b-pm

@b-pm b-pm commented Sep 9, 2026

Copy link
Copy Markdown

Description

This PR fixes Safari UI issues on the workflow canvas and adaptor docs panel.

Closes #2960

  • Trigger node icons (GlobeAltIcon / ClockIcon) now use h-full w-full, matching MiniMap, so Safari sizes the SVG inside the absolutely positioned slot
  • Adaptor docs COPY/ADD controls get an explicit stacking context above the example <pre>

Validation steps

  1. On Safari 18, open a workflow with webhook and cron triggers — icons visible inside the circular nodes
  2. Open the adaptor docs panel for a job — COPY/ADD remain clickable above example snippets

AI Usage

  • I have used another model
  • I have used Claude Code
  • I have not used AI

Pre-submission checklist

  • I have updated the changelog.
  • I have ticked a box in "AI usage" in this PR

Copilot AI lite review requested due to automatic review settings September 9, 2026 12:06
@github-project-automation github-project-automation Bot moved this to New Issues in Core Sep 9, 2026
Give Heroicon trigger glyphs explicit h-full/w-full (matching MiniMap) so
they render inside the node on Safari, and stack adaptor-docs COPY/ADD
controls above the example pre.

Closes OpenFn#2960
@b-pm
b-pm force-pushed the fix/2960-safari-css-trigger-docs branch from 746d154 to 86b93de Compare September 9, 2026 12:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The changes are narrowly scoped, consistent with existing icon sizing patterns (e.g., MiniMap), and directly address the reported Safari rendering/clickability issues without altering business logic.

Pull request overview

This PR addresses Safari-specific UI issues in the workflow canvas and adaptor docs panel by ensuring SVG trigger icons reliably fill their intended slots and by fixing a stacking order problem that made docs actions unclickable in Safari.

Changes:

  • Set trigger node Heroicons (GlobeAltIcon, ClockIcon) to h-full w-full so they size correctly within the absolutely positioned icon container.
  • Add an explicit layering setup (relative + z-*) so adaptor docs COPY/ADD buttons render above example <pre> blocks on Safari.
  • Document the Safari fixes in the Unreleased changelog.
File summaries
File Description
CHANGELOG.md Adds an Unreleased “Fixed” entry documenting the Safari icon sizing and adaptor-docs stacking fix.
assets/js/workflow-diagram/nodes/Trigger.tsx Applies h-full w-full to trigger icons to ensure they fill the node icon slot (matching existing MiniMap behavior).
assets/js/adaptor-docs/components/render/Function.tsx Adjusts stacking order with position: relative and z-index utility classes so COPY/ADD controls remain clickable above the example block.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New Issues

Development

Successfully merging this pull request may close these issues.

UI (CSS) issues on Safari

2 participants