Skip to content
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

fix(theme): fix dark theme bugs #5535

Merged
merged 6 commits into from May 17, 2023
Merged

fix(theme): fix dark theme bugs #5535

merged 6 commits into from May 17, 2023

Conversation

mcoker
Copy link
Contributor

@mcoker mcoker commented May 5, 2023

fixes #5523

@srambach @thatblindgeye also updated docs for the input group (oops, just saw #5518), and the use of input group in the slider.

@mceledonia @andrew-ronaldson the updates we discussed today should be in place. I also added the floating background color to the "raised" panel variation - is that OK? I believe the intention of that variation is to be used for stuff you may want to attach to a menu toggle. In the future, I believe our plan is to always have the raised panel variation wrap the menu when toggling a menu with the menu toggle - then we'll remove the header/filter/search and the footer from the menu component, and build that into the panel's header/footer instead. Here is a use of the panel in this PR - it holds the form below this text input group: https://patternfly-pr-5535.surge.sh/components/text-input-group/#search-input-group-advanced-search-expanded

@patternfly-build
Copy link

patternfly-build commented May 5, 2023

@mcoker mcoker marked this pull request as ready for review May 5, 2023 23:48
Copy link
Member

@mcarrano mcarrano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought that a good way to check this out would be to look at some of our full screen demos. But now I'm seeing that when demos open in a new window, they no longer inherit dark theme even it that's set in the workspace. Is this expected? I expect that if dark theme is set at the workspace level, demos as well as embedded examples will inherit that theme.

@mcoker
Copy link
Contributor Author

mcoker commented May 8, 2023

@mcarrano yep, that's how the dark theme toggle has always worked. It only sets it on the current page. If you refresh the page or open an example in a new window, you have to set it again. I believe @kmcfaul is working a way for the site/toggle to remember your preference.

Copy link
Member

@mcarrano mcarrano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding the full screen demos, I realize that is unrelated to this PR. However I feel like it's something we should try to fix with the website/workspace as it will be surprising if we cannot preview these demos in light or dark.

For this PR, I will defer to @mceledonia and @andrew-ronaldson for design review, although in taking a quick look, seems like some things are still unresolved. I'm especially seeing this for Brand and components that use the brand like cards. Is there a fix there?

Screenshot 2023-05-09 at 2 07 51 PM

Copy link
Member

@srambach srambach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mcoker
Copy link
Contributor Author

mcoker commented May 12, 2023

Rebased with the latest from v5. Note that the dark theme toggle on full page examples isn't working, I put up a fix for that here and will rebase this PR once that fix is published to the docs framework package - patternfly/patternfly-org#3532

For now you can manually enable dark theme on those pages by by adding class="pf-v5-theme-dark" to the <html> element

@nicolethoen
Copy link
Contributor

@mcoker should be able to rebase and get the fixed theme switcher

Copy link
Collaborator

@andrew-ronaldson andrew-ronaldson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Went through the demo and the changes look good. Thanks @mcoker

Copy link
Member

@mcarrano mcarrano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mcoker This looks good, but I just have a few questions about things that I'm seeing.

  • Is it possible to swap the brand image in examples where we are looking at the black on white PatternFly brand placeholder? I'm guessing that occurs because we have black text on a transparent background. See Brand and Card examples specifically.

  • I'm noticing that outlined label borders have a weird pixelation in dark theme.
    Screenshot 2023-05-15 at 5 05 42 PM
    Gray borders seem OK. Anything that can be done about that? (actually looks better in this screen shot than live on my monitor)

  • I see that the background of the User menu changes when I switch to dark theme. Is that what we expect or want?

Screenshot 2023-05-15 at 5 07 39 PM

@andrew-ronaldson @mceledonia interested in your thoughts

@andrew-ronaldson
Copy link
Collaborator

I added a margin to the green labels to check these borders and I think helps with the pixelation @mcarrano saw.
Screenshot 2023-05-16 at 9 25 08 AM

@srambach
Copy link
Member

There's a contrast failure on the read-only code editor.
image

@srambach
Copy link
Member

File upload drag over states fail contrast - should the background be a darker gray? https://patternfly-pr-5535.surge.sh/components/file-upload/multiple-file-upload

Copy link
Contributor

@mattnolting mattnolting left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mcoker
Copy link
Contributor Author

mcoker commented May 17, 2023

@srambach @mcarrano created a follow-up issue for the remaining bugs #5586

@mcoker mcoker merged commit bf43ac0 into patternfly:v5 May 17, 2023
1 check passed
@patternfly-build
Copy link

🎉 This PR is included in version 5.0.0-alpha.58 🎉

The release is available on:

Your semantic-release bot 📦🚀

mattnolting pushed a commit to mattnolting/patternfly that referenced this pull request May 18, 2023
mattnolting pushed a commit to mattnolting/patternfly that referenced this pull request Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants