Skip to content

fix(css): cleanup default font styles - #33808

Merged
karanh37 merged 1 commit into
mainfrom
typography-css-fix
Sep 22, 2026
Merged

karanh37 merged 1 commit into
mainfrom
typography-css-fix

Conversation

@karanh37

@karanh37 karanh37 commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary by Gitar

  • Styles:
    • Removed default font styles from typography.css

This will update automatically on new commits.

RetriggerConfidence Score: 4/5

The PR appears safe to merge after the non-blocking stale Typography documentation is corrected.

Findings

  1. P2 Typography documentation is stale ▶
Summary

This PR removes the default text color, small font size, and corresponding line height from the core-components .prose root, allowing prose content to inherit those properties from its surrounding context.

  • Retains all semantic prose color variables and element-specific typography rules.
  • Leaves related implementation and Storybook explanations out of sync with the new behavior.

Reviews (1) · Last reviewed commit: "fix(css): cleanup default font styles"

Copilot AI lite review requested due to automatic review settings September 22, 2026 11:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@github-actions github-actions Bot added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Sep 22, 2026
@gitar-bot

gitar-bot Bot commented Sep 22, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟢 Low risk · Narrow CSS-only cleanup removes five default font declarations from one stylesheet.

Removes default font styles from typography.css to clean up CSS declarations. No issues found.

Review coverage

📋 Rules No rules evaluated

🧪 Functional validation Not enabled · Set up

🤖 Auto-approval Not enabled · Set up

Options

Display: compact → Counting what did not apply, without listing it.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

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);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 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!

@karanh37
karanh37 enabled auto-merge September 22, 2026 11:21
@github-actions

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 72%
72.47% (103658/143030) 57.59% (63132/109620) 58.63% (20662/35236)

@sonarqubecloud

Copy link
Copy Markdown

@karanh37
karanh37 added this pull request to the merge queue Sep 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit 036a3ccfa17123ded8992ddd6cf8686640be1e89 in Playwright run 35719814737, attempt 1.

✅ 46 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky

Performance

Blocking 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:

  • Application boot ratio was 1.27 per UI scenario (61 boots / 48 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 46 0 0 0 0 0

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

Merged via the queue into main with commit e322725 Sep 22, 2026
98 of 101 checks passed
@karanh37
karanh37 deleted the typography-css-fix branch September 22, 2026 14:52
ShaileshParmar11 added a commit that referenced this pull request Sep 24, 2026
…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.
github-actions Bot pushed a commit to aokimoon/OpenMetadata that referenced this pull request Sep 25, 2026
…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.

This branch was previously deployed

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

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants