@use '@funidata/fudis-core' as core;

fudis-body-text {
  /**
  * Link directive's size property will not have an effect when link is wrapped inside of Body Text component.
  * Instead link will inherit Body Text font-size.
  */
  .fudis-link {
    @include core.link-inherit;
  }
}

/**
  * Add spacing between multiple following Body Text elements inside Notification content.
  * Body Text will not have bottom margin if it does not have other Body Text element underneath.
  */
/* stylelint-disable-next-line selector-class-pattern */
.fudis-notification__content {
  > fudis-body-text:has(+ fudis-body-text) {
    margin-bottom: core.$spacing-xs;
  }
}
