Skip to content

Fix OpenAPI component CSS bundle#821

Open
kiwigitops wants to merge 2 commits into
jpmorganchase:mainfrom
kiwigitops:fix-open-api-swagger-css
Open

Fix OpenAPI component CSS bundle#821
kiwigitops wants to merge 2 commits into
jpmorganchase:mainfrom
kiwigitops:fix-open-api-swagger-css

Conversation

@kiwigitops

Copy link
Copy Markdown

Summary

  • bundle dependency CSS imports instead of leaving the Swagger stylesheet as an external JS side effect
  • move the OpenAPI component styles onto the package entry point so the advertised dist/index.css file contains the Swagger UI styles

Closes #447.

Testing

  • yarn install --immutable
  • yarn workspace @jpmorganchase/mosaic-open-api-component build:bundle
  • yarn workspace @jpmorganchase/mosaic-open-api-component build:types
  • git diff --check

@kiwigitops
kiwigitops requested a review from a team as a code owner May 24, 2026 21:18
@changeset-bot

changeset-bot Bot commented May 24, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 615f293

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 25 packages
Name Type
@jpmorganchase/mosaic-open-api-component Patch
@jpmorganchase/mosaic-site-preset-styles Patch
@jpmorganchase/mosaic-cli Patch
@jpmorganchase/mosaic-components Patch
@jpmorganchase/mosaic-content-editor-plugin Patch
@jpmorganchase/mosaic-core Patch
@jpmorganchase/mosaic-from-http-request Patch
@jpmorganchase/mosaic-icons Patch
@jpmorganchase/mosaic-layouts Patch
@jpmorganchase/mosaic-plugins Patch
@jpmorganchase/mosaic-schemas Patch
@jpmorganchase/mosaic-serialisers Patch
@jpmorganchase/mosaic-site-components Patch
@jpmorganchase/mosaic-site-middleware Patch
@jpmorganchase/mosaic-sitemap-component Patch
@jpmorganchase/mosaic-source-figma Patch
@jpmorganchase/mosaic-source-git-repo Patch
@jpmorganchase/mosaic-source-http Patch
@jpmorganchase/mosaic-source-local-folder Patch
@jpmorganchase/mosaic-source-readme Patch
@jpmorganchase/mosaic-source-storybook Patch
@jpmorganchase/mosaic-store Patch
@jpmorganchase/mosaic-theme Patch
@jpmorganchase/mosaic-types Patch
@jpmorganchase/mosaic-workflows Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented May 24, 2026

Copy link
Copy Markdown

@kiwigitops is attempting to deploy a commit to the mosaic-dev-team Team on Vercel.

A member of the Team first needs to authorize it.

@kiwigitops

Copy link
Copy Markdown
Author

Quick follow-up here. The CSS bundle fix is still current, and Vercel looks like it needs a team member to authorize the preview. Happy to adjust the package/change scope if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Swagger CSS not included in OpenApiComponent styles

1 participant