Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LG-3427: Size desktop selfie capture aligned to ID inputs in review s…
…tep (#4260) * LG-3427: Size desktop selfie capture aligned to ID inputs in review step **Why**: Per design, for consistent width of inputs on Review Issues step. * Add stylesheet for ReviewIssuesStep component * Disable PostCSS loader **Why**: Errors if plugins provided, warns if plugins not provided. Not intending to use any plugins. Wasted overhead to run loader when unused. * Ignore SCSS imports in test runner * Accept optional class on SelfieCapture component * Remove width constraint on selfie field if taking photo
- Loading branch information
Showing
11 changed files
with
40 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
process.env.NODE_ENV = process.env.NODE_ENV || 'test'; | ||
|
||
module.exports = { | ||
require: ['./spec/javascripts/support/babel.js'], | ||
require: ['./spec/javascripts/support/mocha.js'], | ||
file: 'spec/javascripts/spec_helper.js', | ||
extension: ['js', 'jsx'], | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
app/javascript/packages/document-capture/components/review-issues-step.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.document-capture-review-issues-step__input:not(.document-capture-review-issues-step__input--unconstrained-width) { | ||
max-width: 375px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
const { environment } = require('@rails/webpacker'); | ||
|
||
environment.loaders.delete('moduleSass'); | ||
environment.loaders.delete('moduleCss'); | ||
environment.loaders.delete('css'); | ||
|
||
const babelLoader = environment.loaders.get('babel'); | ||
babelLoader.include.push(/node_modules\/@18f\/identity-/); | ||
babelLoader.exclude = /node_modules\/(?!@18f\/identity-)/; | ||
|
||
const sassLoader = environment.loaders.get('sass'); | ||
sassLoader.use = sassLoader.use.filter(({ loader }) => loader !== 'postcss-loader'); | ||
|
||
module.exports = environment; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const babelRegister = require('@babel/register'); | ||
|
||
babelRegister({ ignore: [/node_modules\/(?!@18f\/identity-)/] }); | ||
|
||
// Ignore SCSS imports. These are handled by Webpack in the browser build, but will cause parse | ||
// errors if loaded in Node. | ||
require.extensions['.scss'] = () => {}; |