Repository navigation
Make the active tab visible in light themes - #3046
Merged
Merged
Conversation
In the light and colored admin themes the tab bar is transparent on the blue header and the active tab gets the header color (#39c), so the selected tab cannot be seen. Show it in white with a white underline for these themes only; dark and blue themes keep their current look. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Q82LhA9wBMqm1L1powvy6
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.
PR2 from #3039 (approved there).
Problem
In the light and colored admin themes the label of the selected tab is invisible – e.g. "Settings" right after opening the config page – so it is not clear which tab is shown.
Cause
In these themes the tab bar is transparent on the blue header. Admin's
adapter.cssgives the active tab the color#39c(!important), which is exactly the header color. In the dark and blue themes the tab bar has its own dark background, so the problem does not show there.Change
CSS only, in
admin/index_m.html: for.m.react-lightand.m.react-coloredthe active tab is white with a white underline. This is the rule that was commented out in a7c2342; it is now limited to the light themes so the dark themes keep their current look.Tested
On my installation with
react=light,colored,dark,blue,modernLight,modernDark: active tab readable in the light/colored themes, dark/blue unchanged.Install for testing:
https://github.com/Schimi1983/ioBroker.zigbee/tarball/fix/active-tab-visible🤖 Generated with Claude Code
https://claude.ai/code/session_013Q82LhA9wBMqm1L1powvy6