opensearch-project / OpenSearch-Dashboards

📊 Open source visualization dashboards for OpenSearch.
https://opensearch.org/docs/latest/dashboards/index/
Apache License 2.0
1.61k stars 827 forks source link

[BUG] theme:darkMode cause security plugin login page blank #6812

Open Flyingliuhub opened 2 months ago

Flyingliuhub commented 2 months ago

Describe the bug theme:darkMode cause security plugin login page blank, when added "theme:darkMode": true or false in the OpenSearch_dashboards yaml file, and installed security plugin, the security plugin's login page show blank.

uiSettings:
  overrides:
    "theme:next": true
    "theme:darkMode": true // or false

To Reproduce Steps to reproduce the behavior:

  1. Use main branch for OSD
  2. Use 3..0.0 OS snapshot
  3. Install Security dashboard plugin
  4. nav to localhost:5601
  5. login page show blank

Expected behavior A clear and concise description of what you expected to happen.

OpenSearch Version 3.0.0

Dashboards Version main branch - 3.0.0

Plugins

Security dashboards plugin

Screenshots

image

If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

Additional context

Add any other context about the problem here.

derek-ho commented 2 months ago

This seems unrelated to security plugin, as I am on an older version of OSD and there is no issue. There seems to be similar issues recently with CSS/themes being undefined, for example: https://github.com/opensearch-project/OpenSearch-Dashboards/pull/6703

manasvinibs commented 1 month ago

We have a fix for this issue in this PR https://github.com/opensearch-project/OpenSearch-Dashboards/pull/6730