Skip to content

Commit 6f6d925

Browse files
eschuthoclaude
andcommitted
fix(loading): improve loading screen theming for dark mode support
Fixes white flash in dark mode and removes fallback "Loading..." text that was displaying in Times New Roman font. Changes: - Set themed background color on body using colorBgBase token - Supports both light (#ffffff) and dark mode backgrounds - Remove "Loading..." alt text from branded spinner image - Remove fallback "Loading..." text div entirely - Let React app handle loading state instead of HTML fallback This eliminates the white background flash when loading in dark mode and removes the unstyled "Loading..." text that appeared briefly. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 36daa2d commit 6f6d925

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

superset/templates/superset/spa.html

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@
6969
{% endblock %}
7070
</head>
7171

72-
<body {% if standalone_mode %}class="standalone"{% endif %}>
72+
{% set tokens = theme_tokens | default({}) %}
73+
<body {% if standalone_mode %}class="standalone"{% endif %} style="margin: 0; padding: 0; background-color: {{ tokens.get('colorBgBase', '#ffffff') }};">
7374

7475
{% block body %}
7576
<div id="app" data-bootstrap="{{ bootstrap_data }}">
76-
{% set tokens = theme_tokens | default({}) %}
7777
{% set spinner_style = "width: 70px; height: auto; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);" %}
7878

7979
{% if spinner_svg %}
@@ -85,14 +85,10 @@
8585
<!-- Custom URL from theme -->
8686
<img
8787
src="{{ tokens.brandSpinnerUrl }}"
88-
alt="Loading..."
88+
alt=""
8989
style="{{ spinner_style }}"
9090
/>
91-
{% else %}
92-
<!-- Fallback: This should rarely happen with new logic -->
93-
<div style="{{ spinner_style }}">
94-
Loading...
95-
</div>
91+
{# Remove fallback text - let React app handle loading state #}
9692
{% endif %}
9793
</div>
9894
{% endblock %}

0 commit comments

Comments
 (0)