fix(plugin-multi-tenant): use Dialog components, convert SCSS to CSS with UI4 tokens#17006
Merged
JarrodMFlesch merged 3 commits intoJun 16, 2026
Merged
Conversation
…with UI4 tokens - Refactors AssignTenantFieldModal to use DialogModal/DialogHeader/DialogBody/DialogFooter/DialogCancel/DialogConfirm from @payloadcms/ui - Converts TenantSelector/index.scss and TenantField/index.scss to CSS with UI4 tokens; replaces broken --main-gutter-h-* vars with --gutter-h - Converts test BeforeLogin/index.scss to CSS using typography tokens (--text-*) and semantic color tokens - Converts test Logo/styles.css to UI4 color tokens - Removes unused Icon test component - Reduces DocumentFields sidebar padding-top from --spacer-5 to --spacer-4 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
📦 esbuild Bundle Analysis for payloadThis analysis was generated by esbuild-bundle-analyzer. 🤖 |
PatrikKozak
requested changes
Jun 16, 2026
PatrikKozak
approved these changes
Jun 16, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Modernizes
plugin-multi-tenantto use the new Dialog primitives shipped in #16904 and converts all SCSS to CSS with UI4 design tokens.AssignTenantFieldModalis refactored to useDialogModal/DialogHeader/DialogBody/DialogFooter/DialogCancel/DialogConfirmfrom@payloadcms/ui, replacing the customModal+ manual close/confirm wiring.drawerZBase/useDrawerDepthare removed sinceDialogModalhandles z-index internally.SCSS → CSS migrations:
TenantSelector/index.scss— trivial, token cleanupTenantField/index.scss— SCSS nesting flattened, broken--main-gutter-h-*/--sidebar-gutter-h-*vars (never defined anywhere in the codebase) replaced withvar(--gutter-h)test/BeforeLogin/index.scss— SCSS nesting flattened, allvar(--base)arithmetic and hardcodedremfont sizes replaced with--text-*typography tokens and spacer tokenstest/Logo/styles.css—--theme-*color tokens replaced with--color-*semantic tokensRemoves the unused
Icontest component (only consumed by the OG image route, never rendered in the admin UI).Before
CleanShot.2026-06-15.at.16.59.22.mp4
After
CleanShot.2026-06-15.at.16.55.15.mp4