Repository navigation
Fix inconsistent link size and bold values in empty placeholders - #37848
Conversation
Links inside EmptyPlaceholder rendered at 14px against 12px copy because the legacy unlayered `.prose-typography a` rule pins Typography links to 14px. The shell now makes its links inherit the surrounding font size. The domain/permission values in the no-data and no-access placeholders were bolded via a <0> slot rendered as <b>; drop the slot from the strings and use plain t() so they read in the surrounding weight.
❌ 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 |
Target only `.prose-typography a` so link-styled core Buttons in a placeholder keep their own size. The AddObservabilityPage test now echoes the no-access entity, which plain t() no longer renders through Trans.
Both footers rendered their docs line at 14px under 12px placeholder copy; use the same text-xs secondary footer as the Explore empty state. The Teams docs link also pointed at the glossary docs.
Set the footer text colour through the core Typography `color` prop rather than a className override, per ADR:2026-10-11-migrated-antd-components-adopt-core-styling.
- AccessNotAllowedPage: footer line uses text-xs secondary like the description. - DimensionalityTab: drop text-sm spans that made the description 14px. - BotDetailsPage: bot name no longer renders at a different weight in the title.
The legacy unlayered `.prose-typography a` rule pinned every core Typography link to 14px/21px, so links in 12px copy (empty-state help text, banners) rendered larger than their text. Inherit the size and line height instead, and drop the EmptyPlaceholderShell override that worked around it.
- activityVerb: the link now inherits the text-xs sentence, so drop tw:text-xs!. - CommonEntitySummaryInfoV1, TaskDetailPanel: the rule still sets link colour and weight, so keep the workarounds and correct their comments.
Code Review ✅ Approved 🟡 Medium risk 2 closed / 2 findingsChanging global Typography link sizing to inherit could alter link dimensions and layout across pages that previously relied on the fixed 14px rule. Fixes placeholder link sizing by making Typography links inherit font size and line height from surrounding text, and removes bold styling from interpolated values in empty-state messages. Two prior findings were resolved: the ✅ 2 closed✅ Edge Case:
|
| Compact |
|
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source
…kport 2.1 #37848) (#37894) - Make `.prose-typography a` inherit font size and line height instead of pinning 14px/21px, so Typography links match the text they sit in. - Drop the bold <0> slot from no-data-available-entity, add-data-asset-domain and no-access-placeholder, and render them with plain t(). - Size the Teams and Data Insights placeholder footers to text-xs with the Typography color prop; point the Teams docs link at the teams docs. - Align AccessNotAllowedPage, DimensionalityTab and BotDetailsPage copy. - Drop the stale 14px workaround in activityVerb and correct two comments.
Describe your changes:
No linked issue. This was reported directly from the Explore empty state.
In empty placeholders, links rendered at 14px inside 12px text ("See how to get started", "docs"), and interpolated values such as All Domains were bold.
.prose-typography a { font-size: var(--om-font-size-sm); line-height: 21px }rule infonts.less. It forced every link inside a coreTypographyto 14px/21px, overriding the layeredtw:text-xs. A plaintw:text-xson the link has no effect: a rule outside a CSS layer beats a layered one regardless of specificity. The rule now usesfont-size: inherit; line-height: inherit, so a link matches the text it sits in. Colour, weight and hover/focus colours are unchanged. No core-ui change is needed.IndexNotFoundBanner,AnnouncementBanner, the version header andCreateMemoryModal, now render at 12px like their text.message.no-data-available-entity,message.add-data-asset-domainandmessage.no-access-placeholderwrapped the value in a<0>slot, which every call site rendered as<b />. I removed the slot from all 20 locale files and switched the 6 call sites to plaint(). These keys are only used in placeholders.text-xsfooter as Explore, coloured withcolor="secondary"(Gitar review). The Teams docs link also pointed to the glossary docs; it now points to the teams docs.AccessNotAllowedPage(/unauthorised): the footer message now usestext-xssecondary.DimensionalityTab(Incident Manager): removed thetw:text-smspans that made the whole description 14px.BotDetailsPage: the bot name no longer renders at a different weight inside the title.Collate gets these fixes through the shared
fonts.lessand locale files. Its twoPermissionPlaceholdercall sites that still passrenderElement={<b />}render plain text once the slot is gone.Type of change:
Tests:
Unit tests
SearchEmptyState.test.tsx: the title and description text now sit directly inTypography.AddObservabilityPage.test.tsx: the globaltmock drops interpolation values, so this file's mock now echoes the no-access entity. That keeps the create-vs-edit permission assertions meaningful.ui-coverage-testspasses.Backend integration tests
Visual regression baselines
Typographytext (placeholders, banners, version header), a bold placeholder value or a docs footer may need a refresh from the Linux visual lane.Manual testing performed
I ran this branch's UI against a local 2.0 backend, with the
fonts.lessfix and no core-ui change. For pages where the local data isn't empty, the browser intercepted that page's API and returned an empty list, to force the empty state. On each page I checked that the link's computedfont-sizeequals its parent text's:UI screen recording:
1. Explore, no data

2. Explore → Glossaries

3. Explore → Tags

4. Table → Queries

5. Table → Sample Data

6. Table → Data Observability (profiler not enabled)

7. Team with no sub-teams

8. Bots

9. Custom Properties

10. Service → Agents

11. Data Insights

13. Users search with no results

14. No access (permission name not bold)

Checklist:
🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge; no actionable new issues were found.Summary
This PR makes placeholder links match nearby text and removes bold formatting from inserted values.
Reviews (9) · Last reviewed commit: "Drop stale workarounds for the old 14px ..." · Reviewed by Greptile