From 97cecd2784d880ea9b6af0864c9ae98e192bf4ea Mon Sep 17 00:00:00 2001 From: Steve Dodier-Lazaro Date: Mon, 19 Jan 2026 13:27:21 +0100 Subject: [PATCH 1/2] UI: Ensure preview error displays use a readable text color --- .../core/assets/server/base-preview-head.html | 110 +++++++++++------- 1 file changed, 66 insertions(+), 44 deletions(-) diff --git a/code/core/assets/server/base-preview-head.html b/code/core/assets/server/base-preview-head.html index 17aa180bcdaa..d2f46487ec7e 100644 --- a/code/core/assets/server/base-preview-head.html +++ b/code/core/assets/server/base-preview-head.html @@ -2,19 +2,19 @@ + + +); + const Component = ({ id, header, detail }: any) => { const element = document.querySelector('.' + id); if (!element) { @@ -68,8 +82,18 @@ export const MyError = { }, }; +export const MyErrorWithCustomCSS = { + ...MyError, + decorators: [StyleDecorator], +}; + export const Missing = { args: { id: 'sb-nopreview', }, }; + +export const MissingWithCustomCSS = { + ...Missing, + decorators: [StyleDecorator], +};