-
Notifications
You must be signed in to change notification settings - Fork 55
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
Apply PF Breaking Change Best Practices to MUI Theme Stylesheet #484
Conversation
9942ec8
to
329957e
Compare
eb538ed
to
cb09832
Compare
5ea0f92
to
50fe11a
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.
Thanks for the contribution Jenny! I haven't tested this out yet, just read through the code, but it looks good.
There are just a few tiny changes related to checking in Red Hat references to the community codebase to take care of.
I'll update this if I find anything during testing :)
@@ -237,21 +242,24 @@ | |||
} | |||
|
|||
.pf-v6-c-form-control input { | |||
// TODO: https://issues.redhat.com/browse/RHOAIENG-14702, |
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.
Small nit, we shouldn't check Red Hat references into the community codebase, could you remove the link to the internal JIRA please? :)
301ac98
to
4a8c942
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.
Thank you for reviewing @alexcreasy - updated the stylesheet to apply your feedback.
@jenny-s51 I was trying to spot which css is overriding the button corner radious, but running it i've spotted this issue: The attribute is |
05b0f8f
to
0bf93bb
Compare
Nice catch, thanks @lucferbux ! I've pushed a fix for the buttons and am still investigating as the modals will require some refactoring make sure the When using a form input in a modal, the PF recommendation is to render Alerts at the top of the form. Currently working on updating the modals to apply this change. |
ec0ba64
to
c34cb0c
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.
Updated from the deprecated PF5 model to use the PF6 modal and refactored the components per PF6 standards. The action buttons now have the correct shape (cc @lucferbux ), and the alert is shown at the top of the modal form per the design guidelines: https://staging-v6.patternfly.org/components/forms/form/design-guidelines#error-validation-on-submission
adb4b81
to
01b26ff
Compare
Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com> update comment Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com> link to JIRA ticket Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com> remove ticket references Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com> fix styling bug with modal buttons, removes unneeded components from modal footer fix styling bug with modal buttons, removes unneeded components from modal footer Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com> modal refactor, WIP WIP, refactor modals to apply recommended PF component structure refactor remaining modals refactor remaining modal format remove unused comment revert comment Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com> fix tests Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com> fix import order
01b26ff
to
85b8679
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.
/lgtm
So far breaking down some components into constants is a really great pattern, we are breaking a little bit the 1:1 match with downstream but checking the latest changes is not that big of a deal and would benefit in the future.
@ederign @alexcreasy could you guys take a look and approve?
@lucferbux: changing LGTM is restricted to collaborators In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ederign, lucferbux 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 |
/lgtm |
Description
Updates theming overrides to align with PF breaking change standards.
How Has This Been Tested?
N/A, refactoring only.
To test modal refactoring updates:
Merge criteria:
DCO
check)If you have UI changes