Repository navigation
fix(css): cleanup default font styles - #33808
Conversation
❌ 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🟢 Low risk · Narrow CSS-only cleanup removes five default font declarations from one stylesheet. Removes default font styles from 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 |
| color: theme(--color-text-primary); | ||
| font-size: theme(--text-sm); | ||
| line-height: theme(--text-sm--line-height); | ||
| } |
There was a problem hiding this comment.
Typography documentation is stale
Removing the .prose color, font-size, and line-height defaults leaves the Typography implementation comments and Storybook documentation claiming that this layer still supplies those inherited properties and preserves an identical computed text style. Please update those explanations to describe the new inheritance behavior so consumers are not given an obsolete contract.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
|
✅ Playwright Results — workflow succeededValidated commit ✅ 46 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 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) 39m 4s ⏱️ Max setup 3m 15s · max shard execution 7m 47s · max shard-job elapsed before upload 11m 34s · reporting 2s 🌐 148.43 requests/attempt · 1.27 app boots/UI scenario · 0.00% common-shard skew Optimization targets still in progress:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
…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.
…l regression on core-components changes (open-metadata#33950) * fix(ui): keep DQ chart-widget card text primary and run visual regression on core-components changes open-metadata#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 (open-metadata#33648) did not include openmetadata-ui-core-components/**, so the job was skipped on open-metadata#33808 and its merge-queue runs. * fix(ui-core): keep Typography text primary inside links instead of per-widget overrides Move the fix for open-metadata#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. * test(visual): refresh explore.png baseline for open-metadata#33816's smaller card icon open-metadata#33816 shrank the Explore result-card entity icon from 24px to 20px after the explore.png baseline was captured, so every PR that runs the visual suite fails explore by ~13k px. New baseline is the CI render from run 35998577113 (same pinned Playwright container); it differs from another PR's render by 9 px.



Summary by Gitar
typography.cssThis will update automatically on new commits.
The PR appears safe to merge after the non-blocking stale Typography documentation is corrected.
Findings
Summary
This PR removes the default text color, small font size, and corresponding line height from the core-components
.proseroot, allowing prose content to inherit those properties from its surrounding context.Reviews (1) · Last reviewed commit: "fix(css): cleanup default font styles"