Files
paseo/packages/app/src/styles/code-surface.ts
T
Mohamed Boudra 0707092131 fix(app): preserve UI fonts in portaled overlays
The web UI font rule only targeted the app root, so portaled content fell back to the default font. Extend the rule to the shared overlay root and cover it with a browser regression test.
2026-07-21 17:33:31 +02:00

8 lines
501 B
TypeScript

// Marker for code / diff / monospace surfaces. On web, the app-wide interface-font
// rule (see screens/settings/appearance/apply-root-font.web.ts) targets
// app and overlay roots while excluding `[data-pmono]` subtrees, so tagging a code
// container with this dataSet keeps its monospace font. On native it renders nothing
// and is harmless. Use a shared stable reference so it doesn't trip the react-perf
// "new object as prop" rule.
export const CODE_SURFACE_DATASET = { pmono: "" } as const;