Skip to content

Commit

Permalink
Merge pull request #19 from alexmt/page-style-override
Browse files Browse the repository at this point in the history
fix: rollout extensions should not override global page style
  • Loading branch information
alexmt authored Sep 6, 2022
2 parents 886a3a5 + 52f34ca commit 95c9be1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"@types/react-form": "2.16",
"argo-rollouts": "git+https://github.com/argoproj/argo-rollouts.git",
"classnames": "2.2.6",
"null-loader": "^4.0.1",
"react-scripts": "4.0.3",
"web-vitals": "^1.0.1"
},
Expand Down
5 changes: 5 additions & 0 deletions ui/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ const config = {
configFile: path.resolve('./src/tsconfig.json')
},
},
{
// prevent overriding global page styles
test: path.resolve(__dirname, 'node_modules/argo-ui/src/components/page/page.scss'),
use: 'null-loader',
},
{
test: /\.scss$/,
use: ['style-loader', 'raw-loader', 'sass-loader'],
Expand Down
8 changes: 8 additions & 0 deletions ui/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7921,6 +7921,14 @@ nth-check@^1.0.2:
dependencies:
boolbase "~1.0.0"

null-loader@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/null-loader/-/null-loader-4.0.1.tgz#8e63bd3a2dd3c64236a4679428632edd0a6dbc6a"
integrity sha512-pxqVbi4U6N26lq+LmgIbB5XATP0VdZKOG25DhHi8btMmJJefGArFyDg1yc4U3hWCJbMqSrw0qyrz1UQX+qYXqg==
dependencies:
loader-utils "^2.0.0"
schema-utils "^3.0.0"

num2fraction@^1.2.2:
version "1.2.2"
resolved "https://registry.yarnpkg.com/num2fraction/-/num2fraction-1.2.2.tgz#6f682b6a027a4e9ddfa4564cd2589d1d4e669ede"
Expand Down

0 comments on commit 95c9be1

Please sign in to comment.