Repository navigation
fix(ui-core): keep Typography text primary inside links and run visual regression on core-components changes - #33950
Conversation
…sion on core-components changes #33808 dropped the default text colour from core Typography, so text in card-wide Links (Data Dimensions, test-case status, incident type widgets) inherited the link blue. Pin those cards back to text-primary. The regression slipped through because the visual-regression path filter (#33648) did not include openmetadata-ui-core-components/**, so the job was skipped on #33808 and its merge-queue runs.
❌ 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 |
✅ Playwright Results — workflow succeededValidated commit ✅ 4581 passed · ❌ 0 failed · 🟡 5 flaky · ⏭️ 1 skipped · 🧰 0 lifecycle flaky 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) 1h 9m 42s ⏱️ Max setup 5m 30s · max shard execution 22m 33s · max shard-job elapsed before upload 26m 15s · reporting 23s 🌐 128.40 requests/attempt · 2.24 app boots/UI scenario · 37.55% common-shard skew Optimization targets still in progress:
🟡 5 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 |
🚦 Removed from the merge queue —
|
…r-widget overrides Move the fix for #33808's link-blue text into core: one layered rule gives .prose primary text inside any <a>, so card-wide links across the app stop painting titles and values blue. Outside links Typography still inherits, and a color prop or tw:text-* class still wins. Drops the DQ-only chart-widgets.less override.
🚦 Removed from the merge queue —
|
Summary
#33808 removed
color: text-primaryfrom core.prose, soTypographynow inherits colour. Anywhere a whole card is a<Link>, its titles and values turn link-blue. Example: DQ dashboard Data Dimensions and Test Case Status cards.This PR restores primary colour for
Typographyinside links only, with one core rule and no per-component overrides:Typographystill inherits, as fix(css): cleanup default font styles #33808 intended.@layer base, so acolorprop ortw:text-*class still wins.--color-text-primaryswitches with the theme, so dark mode is covered.Visual regression didn't catch #33808 because the job was skipped there (PR run 35719814030 and all 3 merge-queue runs). The path allowlist added in #33648 has no entry for core-components, even though the UI links and builds it in
preinstall:check-changes / paths-filter / ui: - 'openmetadata-ui/src/main/resources/ui/src/**' ... + - 'openmetadata-ui-core-components/**'Evidence
Checked on a local dev server (
/data-quality):Typographyinside<a>(26 on dashboard)tw:text-tertiary/tw:text-brand-700inside<a>rgb(23, 92, 211)link bluergb(24, 29, 39)primaryrgb(83, 88, 98)/rgb(23, 92, 211)(override wins)rgb(247, 247, 247)typography.test.tsx: 22 passed.data-quality.pngbaseline (captured before fix(css): cleanup default font styles #33808) has dark titles again. The visual job runs on this PR because the workflow file changed.Merge Danger
Door: two-way
Revert is one commit. CSS and CI filter only.
Blast Radius: app-wide, small
Typographyinside an<a>goes back to its pre-fix(css): cleanup default font styles #33808 colour (primary). ATypographyadded since fix(css): cleanup default font styles #33808 that relied on inheriting link blue would needtw:text-brand-*.🤖 Generated with Claude Code