-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
systemd: White widget backgrounds in the journal filter toolbar #21389
base: main
Are you sure you want to change the base?
systemd: White widget backgrounds in the journal filter toolbar #21389
Conversation
Technical review 👍 . Happy to give a formal ack if you already agreed on this with Garrett someplace else. Thanks! |
I agree with this sentiment and the CSS looks like what I'd suspect. I'd be able to approve it with a screenshot. 😉 |
Also: Note: This would affect all buttons, regardless of context (what other widgets they're in), so it might have some unknown effects in some places. It's probably correct, however. |
e2719dd
to
b6fd1f0
Compare
5a4731a
to
b268d77
Compare
b268d77
to
169b0f2
Compare
93df7ea
to
73229a3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That actually decreases contrast between the background and the text, not increases it.
(referring to #21389 (comment))
The way PatternFly is designed is to have secondary buttons inherit the background color.
Buttons are incorrect in all the screenshots. IIRC, the goal was to ensure that there is enough contrast between the text and background in certain circumstances (where the background that is bleeding through and text does not have enough contrast).
Ah, I misunderstood which contrast we want to increase: I thought buttons should have a different background than their surroundings.
And we should keep that? It all started with this comment and screenshot: You said:
From that I thought that widgets should get the primary background color (white in light mode), including secondary buttons. I completely missed the "text on grey" part. :-( So in this PR it looks like this in light mode: And this is dark mode now: In both modes, the secondary button has the same background as the text input (for example). I am happy to just close this PR, of course, but if you think we should change how secondary buttons look, I am happy to do that as well. :-) But I can't tell right now what should be changed exactly. |
Yeah, this is clearly wrong: The dropdowns and the button should have the white background. The grey background makes them not look like widgets, does not have enough contrast between the text and the background, and even makes the button look disabled. Those are all things that need fixing, and why it has a white background on main (unless that was changed recently and is then a big usability and accessibility bug if so) and should always have a white background. I'm pretty sure I said elsewhere that this should not happen globally, but only in cases like this. It's fine to have a fix for these widgets in the general toolbar widget like this, but it's not OK to just globally change the background of the widgets everywhere. |
Ok! What about dark mode? How should that look in the specific case of the journal filter header?
Yes, I agree. |
Good question. Which component is providing that grey background? I did a look through the PF5 site through all components and patterns to find a reference, but can't find it. What is it specifically? Perhaps we're doing something an old, unsupported way or something out of spec. I think this page was even pre-PatternFly at some point? Perhaps we need to change the widgets and the look it's using overall? Perhaps this is why it's weird? |
It's a Toolbar, with our own styling:
I wasn't aware that toolbars normally don't have a grey background... Oh, there is a FIXME that we can now act on. :) |
73229a3
to
e2c84c6
Compare
Ok, I have redone this. The CSS changes now only apply to the journal filter toolbar, and I hope I have also found a better way get the desired effect by setting some PF variables. Dark mode is unchanged for now. |
f877f0c
to
d301d23
Compare
The secondary button should not be transparent. At the same time, improve the existing CSS that does the same job for menu toggles. The toolbar already has its own super custom styling, which I had missed earlier. Let's move our tweaks for the menu toggles into that section and do them by setting the appropriate PF variable. Also, we can remove the FIXME part.
d301d23
to
0c41f81
Compare
The secondary button should not be transparent.
At the same time, improve the existing CSS that does the same job for
menu toggles.
The toolbar already has its own super custom styling, which I had
missed earlier. Let's move our tweaks for the menu toggles into that
section and do them by setting the appropriate PF variable.
Also, we can remove the FIXME part.