Repository navigation
fix(ui-core): button icons share one frame per height with a 6px label gap - #38110
Conversation
…l gap Design review of every Button colour, size and icon placement: - Leading and trailing icons share one frame: 16 at xs, 18 at sm-lg, 20 at xl. Icon-only padding grows 1px so heights stay 28-44px. - Icons keep their drawn stroke when scaled (non-scaling-stroke). - Icon-to-label gap is 6px at every size. - Plus, Minus, PlusCircle and MinusCircle use a 1.5 stroke (was 1.8). Records the decisions as ADR-2026-10-13 amendments v5-v7.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
…dit01 and Copy01 icons Design redrew the six action glyphs at the 1.3 stroke every other icon uses, replacing the 1.5 Plus/Minus stroke. ADR v6 records the change.
link-color keeps its 18px leading frame at xs, so it needs the 18px-frame icon-only padding instead of the size's 16px-frame padding.
…ondary-buttons-review
A trailing-only icon keeps the 16px xs frame, so it needs the regular xs icon-only padding to stay 28px.
🔴 Playwright Results — workflow failedValidated commit ✅ 1856 passed · ❌ 293 failed · 🟡 2 flaky · ⏭️ 139 skipped (138 zero-attempt; reason unknown) · 🧰 0 lifecycle flaky ❌ Action needed: test(s) failed on every attempt against this PR’s validated commit — see Genuine Failures below. These are test failures, not CI budget or infrastructure issues. PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 46m 9s ⏱️ Max setup 13m 43s · max shard execution 20m 52s · max shard-job elapsed before upload 34m 36s · reporting 1m 9s 🌐 2.63 requests/attempt · 1.31 app boots/UI scenario · 0.00% common-shard skew
Optimization targets still in progress:
Zero-attempt skipped tests138 planned test(s) were reported as skipped with no attempts. They remain included in coverage; Playwright did not report a reliable reason.
Genuine Failures (failed on all attempts)❌
|
…ondary-buttons-review
…p changes First-attempt Linux actuals from run 44324164675 for screens whose only change is Button icon size, the 6px label gap or the redrawn icons.
Code Review ✅ Approved 🟡 Medium riskChanging shared Button sizing, spacing, and six globally reused icons alters UI rendering across screens and could disrupt established button layouts. Standardizes Button icon frames to one size per height with a 6px icon-to-label gap, keeps stroke weight via non-scaling stroke, and redraws six shared icons. No issues found. VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |



Describe your changes:
No linked issue — opened without one at the author's request.
Design review of every core-ui
Buttoncolour × size × icon placement. Changes:vector-effect: non-scaling-stroke, so the smaller frames keep the drawn 1.3px line instead of thinning. Applied with**:so shapes inside<g>(44 icons) get it too.InputGroup).Plus,Minus,PlusCircle,MinusCircle,Edit01andCopy01replaced with design's redrawn SVGs at the 1.3 stroke every other icon uses (Plus/Minus were 1.8, which read bolder than Edit / Delete / Copy). Regenerated withyarn icons:generate; these change wherever the icons are used, not only in buttons.Buttonpadding grows 1px per side at xs–lg (also insideInputGroup) so the smaller frame keeps 28 / 32 / 36 / 40 / 44px.ButtonUtilityand thelink-colorleading icon (ADR v4) are unchanged.Recorded as amendments v5–v7 to ADR:2026-10-13-core-icons-and-buttons-follow-the-figma-icon-spec.
Screenshots — all buttons, before (main) → after (this PR)
Rendered from the real
Button/ButtonUtilitycomponents and compiled library CSS. Columns: text, leading Plus/Edit/Delete/Copy, trailing chevron, icon-only (ButtonUtility), disabled. Rows: xs–xl.Primary — before


Primary — after
Secondary — before


Secondary — after
Tertiary — before


Tertiary — after
Type of change:
High-level design:
N/A — styling change to one component (
button.tsx) plus 6 redrawn icons; the other files are the icon sources, their generated components, the test and the ADR.Tests:
Use cases covered
InputGroup.Unit tests
openmetadata-ui-core-components/.../components/base/buttons/button.test.tsx: per-size icon frame, icon-only padding (standalone +InputGroup), 6px gap (boxed + link), non-scaling stroke. The frame, padding and xs–sm gap rows fail against main.npx vitest run src/components/base/buttons src/components/base/input src/components/application/filter-select src/icons→ 171 passed, 0 failed (7 files).vector-effectcomputed asnon-scaling-stroke;ButtonUtilityunchanged (20–36px).Backend integration tests
Ingestion integration tests
Playwright (UI) tests
make playwright_affectedcould not load the config locally (openmetadata-ui deps not installed in this worktree). No user flow changes; the merge queue runs the full suite.Visual regression baselines
1504f0ed00dfrom first-attempt Linux actuals of run 44324164675 (4400be7689d). Every diff was checked as a Button icon-size / 6px-gap / redrawn-icon change (266 change <1% of pixels; the larger ones are date/range pickers whose popover shifts with the narrower trigger).tab-table-schema-definition,explore-filter-service-displayName-keyword-dark: flaky (passed on retry).metric-state-asset-picker,tab-domain-assets-dark,tab-dataProduct-assets-dark: not Button changes (asset data missing after a backend 503; dark-only card width change while the light variants pass).503,my-data-page/ asset locators not found); they pass on main's nightly and are environment failures, not Button changes.1504f0ed00dis needed to catch those.Manual testing performed
vite build) for main and for this branch.UI screen recording:
Not applicable — styling change to an existing component, no new flow. Before/after screenshots above.
Checklist:
Fixes <issue-number>: <short explanation>— no issue, by request.Fixes #<issue-number>above — no issue, by request.REVIEW.mdand fixed every 🔴 finding, or answered it on the line below.e0649890f47: no 🔴. Fixed both 🟡 in862f9f7b59f(InputGroup padding/gap tests; comment said 1px wider at all sizes, now xs–lg). Icon SVG stroke change → no test: a test would restate the design constant.Collate: not checked — Collate may have class overrides or tests that assume the old trailing-frame or gap classes.
🤖 Generated with Claude Code


Confidence Score: 5/5
The reviewed code appears safe to merge.Summary
This PR aligns button icon frames and label spacing, redraws six action icons, and preserves icon-only button heights.
Rohit0301 intentionally omitted tests that only repeat the SVG design constants. Tests were not run during this review.
Reviews (9) · Last reviewed commit: "test(playwright): refresh visual baselin..." · Reviewed by Greptile