Fix Settings header readability with semi-transparent background #10792
+6
−1
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.
Overview
This PR fixes the readability issue with the Settings header title by adding a semi-transparent background layer.
Problem
The Settings title was difficult to read when content scrolled underneath it, as there was no background to separate it from the scrolling content below.
Solution
Added the following Tailwind CSS classes to the
TabHeadercomponent:bg-vscode-sideBar-background/95- Semi-transparent background using VSCode theme colorbackdrop-blur-sm- Subtle blur effect for better text separationz-10- Ensures the header stays on top of scrolling contentThis creates a clean, readable header that doesn't interfere with the content below while maintaining visual consistency with VSCode's design language.
Changes
webview-ui/src/components/common/Tab.tsxto add background styling toTabHeaderTesting
The changes have been tested to ensure:
@taltas Please review when you get a chance!
Important
Adds semi-transparent background and blur to
TabHeaderinTab.tsxfor improved readability.bg-vscode-sideBar-background/95,backdrop-blur-sm, andz-10classes toTabHeaderinTab.tsxfor improved readability.TabHeaderremains readable with content scrolling beneath it.This description was created by
for 022a279. You can customize this summary. It will automatically update as commits are pushed.