axa-ch-webhub-cloud / pattern-library

AXA CH UI component library. Please share, comment, create issues and work with us!
https://axa-ch-webhub-cloud.github.io/plib-feature/develop
125 stars 18 forks source link

axa-fieldset css neagtive margin question #2450

Open MarekLacoAXA opened 1 year ago

MarekLacoAXA commented 1 year ago

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;
    }