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

fix(ui): only render header dom node if needed #9742

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

JarrodMFlesch
Copy link
Contributor

@JarrodMFlesch JarrodMFlesch commented Dec 4, 2024

What?

The <header> dom node was rendering even if empty for group fields. Causing extra margin to be added even if no label/description were provided.

Why?

If the field had no label, description or errors it would still render.

How?

Wraps the header node in an additional condition that checks for label, description or errors before rendering the node.

@JarrodMFlesch JarrodMFlesch merged commit 8e26824 into main Dec 4, 2024
53 checks passed
@JarrodMFlesch JarrodMFlesch deleted the fix/ui/group-field-header branch December 4, 2024 18:29
Copy link
Contributor

github-actions bot commented Dec 6, 2024

🚀 This is included in version v3.5.0

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

Successfully merging this pull request may close these issues.

1 participant