-
Notifications
You must be signed in to change notification settings - Fork 165
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(ui): add pf5 button style config #957
fix(ui): add pf5 button style config #957
Conversation
Signed-off-by: Yi Cai <[email protected]>
🦋 Changeset detectedLatest commit: 7d657d2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The image is available at: |
…button-style-config
The image is available at: |
@ciiay that looks great, thank you!
![]()
![]() |
…button-style-config
Hi @ShiranHi , thanks for the review.
![]() Comparing with the updated primary blue:
![]() ![]() Also there's a demo for PF5 style we can refer, and the sidebar menu color in dark theme looks pretty different from our current one. You can toggle theme using the bottom right button. Let us know if we want to match it or keep our current style. Thanks. |
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.
This looks great! If the dark theme card background is a separate issue I think this is good to go. 👍
Well, and probably this will need a changeset added too @ciiay
Signed-off-by: Yi Cai <[email protected]>
The image is available at: |
I see, then let's follow the PF guidelines. I am a bit confused because when I switch between the bright and dark mode on the PF page (top right corner), the blue color stays the same.
Thanks for the update, the card with the PF5 style in dark theme looks great!
Yes, let's follow this demo. I think this is what @debsmita1 is working on in this PR |
…button-style-config
The image is available at: |
Signed-off-by: Yi Cai <[email protected]>
Hi @ShiranHi , as confirmed with the PF team, the contained button background stays the same color in dark theme as the light theme. I have updated a screen video to show the updated style. Here's how it looks now. |
…button-style-config
Signed-off-by: Yi Cai <[email protected]>
Signed-off-by: Yi Cai <[email protected]>
The image is available at: |
@ciiay thanks for making those adjustments! lgtm |
Hi, this looks like a step into the right direction. Here are two recordings where I've tested MUI v4 and v5 buttons with the default Janus and the RHDH theme. Main branch: before.mp4With this PR: after.mp4I saw some minor issues:
In the long term, we should use the palette colors from the team instead of creating a new palette of colors! For me, it's fine to merge this because we also didn't use the primary color from app-config.yaml for buttons before. |
To test if I can add approval ... /approve |
/approve Thanks @jerolimov, added approval and feel free to add lgtm when ready |
…button-style-config
Signed-off-by: Yi Cai <[email protected]>
Signed-off-by: Yi Cai <[email protected]>
|
@jerolimov Thanks for the review. I have updated this PR to address your feedback. Please take a look. |
The image is available at: |
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.
Thanks for the update! Lgtm! 👍
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gashcrumb, invincibleJai, jerolimov The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
37fc476
into
redhat-developer:main
Description
A theme config for a Material-UI Button (v4) to look as similar as possible to a PF5 Button.
Which issue(s) does this PR fix
PR acceptance criteria
Please make sure that the following steps are complete:
How to test changes / Special notes to the reviewer
Light theme buttons:

Contained_button







Contained_button_hover
Contained_button_disabled
Outlined_button
Outlined_button_hover
Text_button
Text_button_hover
Dark theme buttons:
Contained button and text button:
updated_contained_button_in_dark_theme.mov
Contained_button_disabled



Outline_button
Outline_button_hover
Dark theme palette reference:
https://www.patternfly.org/developer-resources/dark-theme-handbook/
https://github.com/patternfly/patternfly/blob/main/src/patternfly/sass-utilities/themes/dark/scss-variables.scss
https://github.com/patternfly/patternfly/blob/main/src/patternfly/sass-utilities/themes/dark/colors.scss