Skip to content
New issue

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

Allow users to import the globalCSS themselves #56

Merged
merged 6 commits into from
Jan 27, 2025

Conversation

Adammatthiesen
Copy link
Member

This pull request introduces a new option to the integration function in the packages/studiocms_ui/src/index.ts file, allowing users to disable automatic CSS injection. The most important changes include adding the noInjectCSS option to the Options type and modifying the CSS injection logic accordingly.

Enhancements to CSS injection:

This is especially useful for StudioCMS where we don't want our dashboard styles leaking to the front-end or other packages.

@Adammatthiesen Adammatthiesen requested review from louisescher and a team as code owners January 27, 2025 00:08
Copy link

changeset-bot bot commented Jan 27, 2025

🦋 Changeset detected

Latest commit: a1c9f50

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

This PR includes changesets to release 1 package
Name Type
@studiocms/ui 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

Copy link

pkg-pr-new bot commented Jan 27, 2025

Open in Stackblitz

npm i https://pkg.pr.new/@studiocms/ui@56

commit: a1c9f50

Copy link
Member

@louisescher louisescher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will need documentation, if you could add it that'd be great

@louisescher louisescher merged commit 40ae2ea into main Jan 27, 2025
2 checks passed
@louisescher louisescher deleted the Adammatthiesen-patch-1 branch January 27, 2025 20:50
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.

2 participants