From 222d376cb9413772c39484546d3440a416e9a5d6 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Fri, 5 Jul 2024 12:46:38 +0200 Subject: [PATCH] force dark color for text --- .../src/bootstrap/__snapshots__/render_template.test.ts.snap | 2 ++ .../src/bootstrap/render_template.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/core/rendering/core-rendering-server-internal/src/bootstrap/__snapshots__/render_template.test.ts.snap b/packages/core/rendering/core-rendering-server-internal/src/bootstrap/__snapshots__/render_template.test.ts.snap index af1808d9a2019..c1754bce247a9 100644 --- a/packages/core/rendering/core-rendering-server-internal/src/bootstrap/__snapshots__/render_template.test.ts.snap +++ b/packages/core/rendering/core-rendering-server-internal/src/bootstrap/__snapshots__/render_template.test.ts.snap @@ -64,10 +64,12 @@ if (window.__kbnStrictCsp__ && window.__kbnCspNotEnforced__) { var errorTitleEl = document.createElement('h1'); errorTitleEl.innerText = errorTitle; errorTitleEl.style.margin = '20px'; + errorTitleEl.style.color = '#1a1c21'; var errorTextEl = document.createElement('p'); errorTextEl.innerText = errorText; errorTextEl.style.margin = '20px'; + errorTextEl.style.color = '#343741'; var errorReloadEl = document.createElement('button'); errorReloadEl.innerText = errorReload; diff --git a/packages/core/rendering/core-rendering-server-internal/src/bootstrap/render_template.ts b/packages/core/rendering/core-rendering-server-internal/src/bootstrap/render_template.ts index fbb7a4290bf14..7644841ddead0 100644 --- a/packages/core/rendering/core-rendering-server-internal/src/bootstrap/render_template.ts +++ b/packages/core/rendering/core-rendering-server-internal/src/bootstrap/render_template.ts @@ -80,10 +80,12 @@ if (window.__kbnStrictCsp__ && window.__kbnCspNotEnforced__) { var errorTitleEl = document.createElement('h1'); errorTitleEl.innerText = errorTitle; errorTitleEl.style.margin = '20px'; + errorTitleEl.style.color = '#1a1c21'; var errorTextEl = document.createElement('p'); errorTextEl.innerText = errorText; errorTextEl.style.margin = '20px'; + errorTextEl.style.color = '#343741'; var errorReloadEl = document.createElement('button'); errorReloadEl.innerText = errorReload;