Skip to content

Commit

Permalink
Stop importing patternfly-react since it's not used anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
KKoukiou authored and marusak committed Nov 27, 2020
1 parent bfdb3ba commit b2cdf6c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 24 deletions.
6 changes: 0 additions & 6 deletions lib/_global-variables.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
/* Bootstrap scss compilation will complain if these are not set
* https://github.com/twbs/bootstrap/issues/23982
*/
$grid-gutter-width: 30px;
$font-size-base: 1;

/*
* PatternFly 4 adapting the lists too early.
* When PF4 has a breakpoint of 768px width, it's actually 1108 for us, as the sidebar is 340px.
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@
"@patternfly/react-table": "4.19.24",
"docker-names": "1.1.1",
"moment": "2.29.1",
"patternfly": "3.59.5",
"patternfly-react": "2.39.17",
"prop-types": "15.7.2",
"react": "16.14.0",
"react-dom": "16.14.0",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import React from 'react';
import ReactDOM from 'react-dom';
import '../lib/patternfly/patternfly-cockpit.scss';
import '../lib/patternfly/patternfly-4-cockpit.scss';
import Application from './app.jsx';
import './podman.scss';

Expand Down
18 changes: 3 additions & 15 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ module.exports = {
},
/* HACK: remove unwanted fonts from PatternFly's css */
{
test: /patternfly-cockpit.scss$/,
test: /patternfly-4-cockpit.scss$/,
use: [
extract.loader,
{
Expand All @@ -144,10 +144,6 @@ module.exports = {
loader: 'string-replace-loader',
options: {
multiple: [
{
search: /src:url[(]"patternfly-icons-fake-path\/glyphicons-halflings-regular[^}]*/g,
replace: 'font-display:block; src:url("../base1/fonts/glyphicons.woff") format("woff");',
},
{
search: /src:url[(]"patternfly-fonts-fake-path\/PatternFlyIcons[^}]*/g,
replace: 'src:url("../base1/fonts/patternfly.woff") format("woff");',
Expand All @@ -171,13 +167,6 @@ module.exports = {
loader: 'sass-loader',
options: {
sassOptions: {
includePaths: [
// Teach webpack to resolve these references in order to build PF3 scss
path.resolve(nodedir),
path.resolve(nodedir, 'font-awesome-sass', 'assets', 'stylesheets'),
path.resolve(nodedir, 'patternfly', 'dist', 'sass'),
path.resolve(nodedir, 'bootstrap-sass', 'assets', 'stylesheets'),
],
outputStyle: 'compressed',
},
sourceMap: true,
Expand All @@ -187,7 +176,7 @@ module.exports = {
},
{
test: /\.s?css$/,
exclude: /patternfly-cockpit.scss/,
exclude: /patternfly-4-cockpit.scss/,
use: [
extract.loader,
{
Expand All @@ -208,13 +197,12 @@ module.exports = {
},
{
loader: 'sass-resources-loader',
// Make PF3 and PF4 variables globably accessible to be used by the components scss
// Make PF4 variables globably accessible to be used by the components scss
options: {
resources: [
path.resolve(libdir, './_global-variables.scss'),
path.resolve(nodedir, './@patternfly/patternfly/base/patternfly-themes.scss'),
path.resolve(nodedir, './@patternfly/patternfly/base/patternfly-variables.scs'),
path.resolve(nodedir, './patternfly/dist/sass/patternfly/_variables.scss')
],
},
},
Expand Down

0 comments on commit b2cdf6c

Please sign in to comment.