New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS background-color jp-layout-color1 not showing up properly #11656
Comments
Thx @andrewfulton9 for opening this. @fcollonval To give you a bit more background, this issue has been seen while reviewing #10298 but it looks like a general issue in master. I remember you have participated to large changes around CSS (blueprint removal...). Could this issue be related to those changes? |
On 3.x the panel is headers are grey, so the white background for the buttons makes sense: The change to white bakcground was introduced in #11369 (CC @hbcarlos) (unrelated to blueprint removal). Previously we had: .jp-DebuggerSidebar-body .jp-stack-panel-header {
background-color: var(--jp-layout-color2);
} While currently we have: jupyterlab/packages/ui-components/style/sidepanel.css Lines 36 to 46 in 2263baa
where I think I preferred the old style where toolbars had the grey background - it was strengthening the visual hierarchy. Please note that in addition to changing the background of toolbars to
What do you all think? |
Indeed this comes from the accordion panel PR. We need to change the toolbar's background color in the accordion panel. The actual colors are a bit confusing. I believe this could be a "good first issue". What do you think? |
This blocks for now #10298 so we could pick that asap. I have not tested, but the point is that the button do not change, I wonder if changing the toolbar color will fix the issue. |
The idea of switching to white background is to move towards homogeneity in side panels. The debugger panel was the only one using section title with non-white color (compare to the extension manager, tabs/running panels, property inspector). I don't have strong opinion regarding the styling itself; only that we should push towards homogeneity between widgets used to improve usability, accessibility and maintenance. |
At the end, we need to ensure the button has a visual state (on/off) as shown in https://user-images.githubusercontent.com/3627835/121290061-9930b100-c8ab-11eb-9700-055cab2f19a1.gif Before, the button (transparent?) was grey, and then when clicked it was becoming white. We have lost that now. If the default is white, the pressed should be grey, right? |
Yes it should |
I created PR #11688 to change the icon background colors in the debugger. I haven't seen any other places this is an issue, so I think this may be all that's needed. |
Closed via #11688 |
Description
Recently, when I build off of master, selected menu items in the debugger have stopped having the background color show that they are selected. I suspect this issue isn't debugger specific though. In the gif below I try to demonstrate the css not working by changing between the table and tree views of the variable panel in the debugger. Notice how it isn't clear from the buttons which one is clicked.
Below is what the styles section of the inspector console is showing:
Reproduce
From a master branch build:
Expected behavior
a button that is toggled on has a grey background to indicate it is toggled.
Context
linux ubuntu 18.04.6
Chrome 96.0.4664.45
-Master Branch
Troubleshoot Output
Command Line Output
Browser Output
The text was updated successfully, but these errors were encountered: