Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
chore(ui): remove unused margins prop from RenderFields (#16637)
## Summary
Removes the `margins` prop from the `RenderFields` component and cleans
up related CSS classes.
## Changes
- Removed `margins` prop from `RenderFieldsProps` type definition
- Removed `margins="small"` usage from field components:
- `ArrayRow`
- `BlockRow`
- `Collapsible`
- `Group` (2 instances)
- Removed `margins={false}` from `Row` field and moved spacing override
to CSS (`--spacing-field: 0` on `.row__fields`)
- Simplified `RenderFields` component by removing margin-related class
logic
- Cleaned up CSS by removing `.render-fields--margins-small` and
`.render-fields--margins-none` classes
## Rationale
The `margins` prop was adding unnecessary complexity. Field spacing is
now handled more explicitly:
- Default spacing applies to most field containers
- Row fields handle their own zero-spacing via CSS P
Patrik committed
d6b2d738ca2d5113b4a0b03cebb4c0883aabc8e9
Parent: d40452f
Committed by GitHub <noreply@github.com>
on 5/15/2026, 8:47:04 PM