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

page.scss sould be imported by all pages.
This commit is contained in:
Katerina Koukiou 2023-05-25 21:50:00 +02:00 committed by Martin Pitt
parent 4c405168a8
commit 12a648b6e4
2 changed files with 2 additions and 8 deletions

View file

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

View file

@ -23,14 +23,6 @@ import "patternfly/patternfly-5-cockpit.scss";
import React from 'react';
import ReactDOM from 'react-dom';
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';
document.addEventListener("DOMContentLoaded", function () {