Modal development

A classic modal overlay, in which you can include any content you want.

Example

  <div class="modal modal__mask" v-show="modal1">
    <div class="modal__wrapper" @click="close('modal1')">
      <div
        class="modal__container"
        tabindex="-1"
      >
        <div class="modal__header">
          <h3 class="modal__title">Title</h3>
          <button class="button button--size-1 button--subtle" @click="close('modal1')">
            <svg slot="icon" width="16" height="16">
              <use xlink:href="#cross-icon"></use>
            </svg>
          </button>
        </div>
        <div class="modal__body">
          Modal content
        </div>
        <div class="modal__footer">
          <button class="button button--subtle" @click="close('modal1')">Close</button>
          <button class="button button--primary">Do something</button>
        </div>
      </div>
    </div>
  </div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Last Updated: 4/1/2019, 6:41:31 PM