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

axa-fieldset css neagtive margin question #2450

Open
MarekLacoAXA opened this issue Jun 23, 2023 · 0 comments
Open

axa-fieldset css neagtive margin question #2450

MarekLacoAXA opened this issue Jun 23, 2023 · 0 comments

Comments

@MarekLacoAXA
Copy link
Contributor

Pls. explain the reason for negative top margin of axa-fieldset root and its neagtion with positive top margin in its children.
What is this good for?
It complicates my spacing of axa-fieldsets siblings.

Thx!

https://github.com/axa-ch-webhub-cloud/pattern-library/blame/04d7e0f227f85d7b39eb0a6bfa9911076027e924/src/components/10-atoms/fieldset/index.scss#L17

    margin-top: -$fieldset-vertical-margin;

    > * {
      margin-top: $fieldset-vertical-margin;
    }
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

No branches or pull requests

1 participant