Repository navigation
fix(ui-core): tighten card tab label-to-underline gap - #34009
Conversation
The card variant of the underline Tabs.Item padded the label with pt-2.5 pb-2, leaving an 8px gap between the label and the selected underline. Reduce it to pb-1 (4px) in core so every card tab bar (glossary, entity details, data quality, settings, ...) picks it up. Refresh the glossary, data-quality and delete-modal visual baselines. They were already stale against main (captured before the core Tabs and glossary migrations, and delete-modal still showed a stuck manage dropdown) and now also carry the tighter tab gap.
❌ 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 |
Code Review ✅ Approved 1 closed / 1 findings🟡 Medium risk · Core card-tab bottom padding shrinks across roughly 55 UI surfaces. Reduces the bottom padding of card tab labels from ✅ 1 closedClosed: Quality: Card tab label no longer vertically centered with actions slot
OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
✅ Playwright Results — workflow succeededValidated commit ✅ 4584 passed · ❌ 0 failed · 🟡 2 flaky · ⏭️ 1 skipped · 🧰 0 lifecycle flaky ✅ All tests passed. The 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) 58m 50s ⏱️ Max setup 4m 44s · max shard execution 25m 10s · max shard-job elapsed before upload 28m 35s · reporting 22s 🌐 127.25 requests/attempt · 2.24 app boots/UI scenario · 46.16% common-shard skew
Optimization targets still in progress:
🟡 2 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |



Describe your changes:
The card-variant underline tab (
Tabs.List variant="card" type="underline") gave its labeltw:pt-2.5 tw:pb-2, which left an 8px gap between the label and the selected underline. This PR reduces the bottom padding totw:pb-1(4px).The change is in core
Tabs.Item(openmetadata-ui-core-components/.../application/tabs/tabs.tsx), not in individual pages. About 55 card tab bars use this variant and none of them override the tab padding locally, so all of them get the change. That covers glossary, glossary term, every entity details and version page, data quality, test suites, incident manager, services, teams, users, roles, policies, alerts, tags and custom properties.Measured in the running app after the change (glossary, data quality, teams): the tab has
padding-bottom: 4px, and the gap from the label bottom to the underline is 4px (before: 8px).Type of change:
High-level design:
N/A: one class changed in core.
Tests:
Use cases covered
Unit tests
tabs.test.tsxpasses (6/6). I did not add a test, because the change is a single padding token.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
I ran the visual-regression suite locally in the pinned
mcr.microsoft.com/playwright:v1.57.0-jammycontainer. It ran against a Docker stack freshly built from this branch (./docker/run_local_docker.sh -m ui -d mysql) with sample data seeded.glossary,data-quality,delete-modal). These three baselines were already stale againstmain. They were captured before the core Tabs and glossary migrations (refactor(ui): migrate entity details and version page tabs to core Tabs #33890, refactor(ui): migrate remaining antd Tabs to core Tabs #33912, refactor(ui): migrate glossary, classification and tag details pages to core components #33916), anddelete-modalstill showed the glossary manage dropdown stuck open behind the modal. I refreshed only those three. The other baselines are unchanged, so no data from my local environment (team and user counts) ends up in them.explorefailed on this run only. The second seeding pass had put an extraArticle_*result at the top of the search list.explorepassed on the fresh DB in the first run, and that page has no tabs.Manual testing performed
/glossary,/data-qualityand/settings/members/teams: 4px on all three.UI screen recording / screenshots:
The refreshed
glossary.pnganddata-quality.pngbaselines in this PR show the smaller gap.Checklist:
🤖 Generated with Claude Code