-
Notifications
You must be signed in to change notification settings - Fork 613
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
CONSOLE-3081: moved imports #11370
CONSOLE-3081: moved imports #11370
Conversation
frontend/public/components/app.jsx
Outdated
@@ -61,6 +61,7 @@ const NOTIFICATION_DRAWER_BREAKPOINT = 1800; | |||
// Edge lacks URLSearchParams | |||
import 'url-search-params-polyfill'; | |||
import { graphQLReady } from '../graphql/client'; | |||
import '@patternfly/patternfly/patternfly-theme-dark.scss'; // load dark theme here as MiniCssExtractPlugin ignores load order of sass and dark theme must load after all other css |
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.
Can this go on line 55 so it's with the other (s)css?
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.
Yes, if line 57 can move to line 52, above the css imports
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.
Sure. The goal is to keep things grouped.
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.
@rhamilto updated
Hi @mattnolting. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
73e4010
to
b6721b2
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mattnolting, rhamilto 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 |
I have a feeling this is due to https://github.com/openshift/console/blob/master/frontend/webpack.config.ts#L39 |
QE Approver: |
/ok-to-test |
/label docs-approved We have docs- and px-approval for the epic. |
@yanpzhan will test the PR |
@mattnolting Launched a cluster against the pr, about white box mentioned in #11384 (comment), still found on the cluster: |
@yanpzhan No, #11384 converts this component to a PF toggle group. For the toggle group to appear correctly in @sg00dwin's PR, this PR will need to be merged. |
@mattnolting Thanks for your info. |
/retest |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
@mattnolting: all tests passed! Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
There's a bug in
MiniCssExtractPlugin
that misorderscss
imports. To resolve this, it appears that.scss
imported inapp.jsx
AFTER other imports works as expected, but to ensure that dark theme imports are correctly ordered, it's most reliable to use.css
(MiniCssExtractPlugin
does not seem to present this issue with.css
files).