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 form field margins #3058

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

vvalentin-lucca
Copy link
Contributor

Description



Before:
Capture d’écran 2024-09-05 à 10 36 17

After:
Capture d’écran 2024-09-05 à 10 45 18

@vvalentin-lucca vvalentin-lucca added the 🔖🐛 FIX Bug / Visual fix (PR should target Master branch) label Sep 5, 2024
@vvalentin-lucca vvalentin-lucca requested a review from a team as a code owner September 5, 2024 09:15
@LuccaIntegration
Copy link

@CCNET-iLucca
Copy link

Tests d'interfaces

@@ -8,6 +8,10 @@
margin: 0;
padding: 0;
border: 0;

.form-field {
margin-block: var(--pr-t-spacings-50);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the last block always have a bottom-margin?

Actually, do we always want block margins here? For example, if we use a vertical flex container with gap?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In this case, the container is always a .form-fieldset, and its display shouldn't move.

@@ -8,6 +8,10 @@
margin: 0;
padding: 0;
border: 0;

.form-field {
margin-block: var(--pr-t-spacings-50);
Copy link
Contributor

Choose a reason for hiding this comment

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

Applying only a margin bottom on .formLabel and .form-field wouldn't be cleaner?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That would work too, but it affects two elements instead of one.
The margins merge here, is that what's bothering you?

Copy link
Contributor

Choose a reason for hiding this comment

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

I just wonder if margins collapse works well on every browsers

@jeremie-lucca jeremie-lucca added this to the 18.2.3 milestone Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔖🐛 FIX Bug / Visual fix (PR should target Master branch)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants