We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The OpenApiComponent renders the react-swagger component without any styling.
I suspect the root cause is the fact that esbuild is told to exclude node_modules when bundling the open API component https://github.com/jpmorganchase/mosaic/blob/main/scripts/bundle.js#L36
The package.json file also mentions a dist/index.css file which is incorrect. Should be dist/styles.css.
package.json
dist/index.css
dist/styles.css
Adding the following CSS import to _app.tsx will apply swagger styling
_app.tsx
import '@jpmorganchase/mosaic-open-api-component/index.css';
Add the following CSS import to _app.tsx
import 'swagger-ui-react/swagger-ui.css';
The text was updated successfully, but these errors were encountered:
Still open ?
Sorry, something went wrong.
Yes, still open
No branches or pull requests
The OpenApiComponent renders the react-swagger component without any styling.
Root Cause
I suspect the root cause is the fact that esbuild is told to exclude node_modules when bundling the open API component
https://github.com/jpmorganchase/mosaic/blob/main/scripts/bundle.js#L36
The
package.json
file also mentions adist/index.css
file which is incorrect. Should bedist/styles.css
.Expected Result
Adding the following CSS import to
_app.tsx
will apply swagger stylingWorkaround
Add the following CSS import to
_app.tsx
The text was updated successfully, but these errors were encountered: