Skip to content

Commit

Permalink
Fix "Elastic did not load properly" message color when system in dark…
Browse files Browse the repository at this point in the history
… mode (#187653)

## Summary

fix #187570

The problem was that when the system/browser was in dark mode, the
default text color became white, but the background was forced to a
specific bright color, so the text became unreadable. A quick fix is to
also force the text color (I used EUI text colors)


<img width="858" alt="Screenshot 2024-07-05 at 12 44 11"
src="https://github.com/elastic/kibana/assets/7784120/9ccefc04-60f6-46e3-a649-4e47cad043ac">
  • Loading branch information
Dosant authored Jul 5, 2024
1 parent e7810e4 commit 305f665
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 305f665

Please sign in to comment.