fix(ui): uncomment .hidden CSS rule to prevent FOUC on tab panels#3058
Merged
crivetimihai merged 1 commit intomainfrom Feb 20, 2026
Merged
fix(ui): uncomment .hidden CSS rule to prevent FOUC on tab panels#3058crivetimihai merged 1 commit intomainfrom
crivetimihai merged 1 commit intomainfrom
Conversation
crivetimihai
approved these changes
Feb 19, 2026
Member
crivetimihai
left a comment
There was a problem hiding this comment.
Minimal and correct. Confirmed during triage of #2933 — the commented-out rule was the root cause of the FOUC since Tailwind's .hidden utility has no effect until the CDN/JIT compiler runs. Once Tailwind loads, both rules are display: none (no !important conflict).
Uncommented the .hidden { display: none; } rule in admin.css that was
causing a Flash of Unstyled Content (FOUC) on page load. Until Tailwind
CSS loads via CDN/JIT, the hidden class had no effect, causing all tab
panels to be briefly visible. This was especially noticeable with the
ToolOps panel which has hx-trigger="load" and starts fetching content
immediately.
Closes #2933
Signed-off-by: SuciuDaniel <Daniel.Vasile.Suciu@ibm.com>
7d75f1a to
f11f105
Compare
Member
Review ChangesRebased onto Triage
Review
Fixes
Tests
PR looks good to merge. @suciu-daniel — nice catch on the FOUC issue. The fix is minimal and correct. |
vishu-bh
pushed a commit
that referenced
this pull request
Feb 24, 2026
) Uncommented the .hidden { display: none; } rule in admin.css that was causing a Flash of Unstyled Content (FOUC) on page load. Until Tailwind CSS loads via CDN/JIT, the hidden class had no effect, causing all tab panels to be briefly visible. This was especially noticeable with the ToolOps panel which has hx-trigger="load" and starts fetching content immediately. Closes #2933 Signed-off-by: SuciuDaniel <Daniel.Vasile.Suciu@ibm.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Uncommented the
.hidden { display: none; }rule inadmin.cssthat was causing a Flash of Unstyled Content (FOUC) on page load.Problem
Until Tailwind CSS loads via CDN/JIT, the
hiddenclass had no effect, causing all tab panels to be briefly visible. This was especially noticeable with the ToolOps panel which hashx-trigger="load"and starts fetching content immediately.Solution
Uncommented the CSS rule at lines 169-171 in
mcpgateway/static/admin.cssto provide immediate styling before Tailwind loads.Testing
.hiddenclass is used extensively throughoutadmin.html(161 occurrences)Closes #2933