-
Notifications
You must be signed in to change notification settings - Fork 24
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
CNV-21086: Change Not migratable label style #1035
CNV-21086: Change Not migratable label style #1035
Conversation
@hstastna: This pull request references CNV-21086 which is a valid jira issue. 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. |
@metalice @upalatucci @vojtechszocs please review |
2 similar comments
@metalice @upalatucci @vojtechszocs please review |
@metalice @upalatucci @vojtechszocs please review |
Can we use instead of orange hardcoded classname with patternfly variable ? |
I can try but there are more orange-like PF variables, so I don't guarantee I use the right one. |
@metalice So I've tried to implement what you've suggested - to use the PF variable instead of the orange hardcoded color, but unfortunately, this is not how the I've tried to use color variables suggested here or also the label's ones. Nothing worked, it was ignored, and the default color was used - the grey one, for the component. Simply, the Also |
@metalice @upalatucci @vojtechszocs please review |
d9edf49
to
58fc76a
Compare
what I mean is instead of using color prop add to the component a className and in the CSS file use color: --(var) that will resolve to orange |
@metalice I know what you mean and that's exactly what doesn't work, because of what I've mentioned earlier. It's because of how the Label component was designed. |
@upalatucci @vojtechszocs please review |
Label component support out-of-the-box in some variants but every component which is an HTML element can be override styling with CSS. if you will need in dark purple for example label use the Label from patternfly it's still possible. for example, this is the override: am I missing something? is this not what u meant to do? or something else completely? |
c409aad
to
ca8ec7b
Compare
Change the label to Compact, Unfilled, Orange, according to the design changes and Patternfly styles. Fixes https://issues.redhat.com/browse/CNV-21086
ca8ec7b
to
c55dec7
Compare
Thanks a lot for the more detailed suggestion, it helped me to make it work the way you've suggested! The problem was with my css file and the variables used in there. We need to use exactly such a (simple) way like in the css I've created (nothing more in there), otherwise overriding won't work and the default grey color will be used instead. Just a note we need to change the text of the label to some kind of orange, not label's background color. And IMO overriding PF variables like that is not nice, we should avoid that unless necessary, because yes, such a code is less maintainable than using simply |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hstastna, metalice 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 |
📝 Description
This is another PR for the feature: https://issues.redhat.com/browse/CNV-21086
Change the label to Compact, Unfilled, Orange, according to the design changes and Patternfly styles.
More on Patternfly
Label
component:https://www.patternfly.org/v4/components/label
https://www.patternfly.org/v4/components/label/design-guidelines#when-to-use-filled-or-unfilled-labels
🎥 Screenshots
Before:
VMs list:
VM Overview tab:
VM Details tab:
After: