Modal Base: Loading

See "img upload" in sidebar snet/molecules for variants, or go to info panel and look for it in "references" (@snet-img-upload)

Refer to modal frame found in view tab for complete structure without content.

A modal's default size is 640px

Modifier classes for modals

  • modal-sm: 480px
  • modal-md: 720px (mainly used for modals containing images)
  • modal-lg: 896px
  • modal-xl: 1120px

Content loading

A modal with a content loading component behaves as follows:

  • It has a second body element with the -isLoading class that is hidden by default, and shown only when ...
  • ... the -contentLoading modifier is applied to the modal element ...
  • ... which in turn hides the regular modal body element which into which the content is injected
<div class="sds-modal modal fade" id="" aria-hidden="true" tabindex="-1">
    <div class="sds-modal__dialog modal-dialog modal-sm-loading modal-dialog-centered">
        <div class="sds-modal__content modal-content">

            <div class="sds-modal__body modal-body">

                <div class="sds-stackSm text-center">
                    <span class="sds-loaderLottie"></span>
                    <p class="h2">Chargement des transactions ...</p>
                </div>

            </div>

        </div>
    </div>
</div>
{% extends "@snet-modal-base-frame" %}
{% block body %}
	<div class="{{ namespace }}stackSm text-center">
		{% render "@loader-lottie" %}
		<p class="h2">Chargement des transactions ...</p>
	</div>
{% endblock %}