patternfly-5-overrides should be auto-imported by the page.scss file

page.scss sould be imported by all pages.

(cherry picked from commit 12a648b6e4)
This commit is contained in:
Katerina Koukiou 2023-05-25 21:50:00 +02:00 committed by Justin Stephenson
parent ae3d2b77cb
commit 8564be5f8f
2 changed files with 2 additions and 8 deletions

View file

@ -1,3 +1,5 @@
@use "page.scss";
p { p {
font-weight: bold; font-weight: bold;
} }

View file

@ -23,14 +23,6 @@ import "patternfly/patternfly-5-cockpit.scss";
import React from 'react'; import React from 'react';
import { createRoot } from 'react-dom/client'; import { createRoot } from 'react-dom/client';
import { Application } from './app.jsx'; import { Application } from './app.jsx';
/*
* PF4 overrides need to come after the JSX components imports because
* these are importing CSS stylesheets that we are overriding
* Having the overrides here will ensure that when mini-css-extract-plugin will extract the CSS
* out of the dist/index.js and since it will maintain the order of the imported CSS,
* the overrides will be correctly in the end of our stylesheet.
*/
import "patternfly/patternfly-5-overrides.scss";
import './app.scss'; import './app.scss';
document.addEventListener("DOMContentLoaded", function () { document.addEventListener("DOMContentLoaded", function () {