.modal{“aria-labelledby” => “modalLabel”, “data-modal” => “box-modal”, :role => “dialog”, :tabindex => “-1”}

.modal-dialog{ role: 'document', class: "modal-#{size} #{classname}" }
  .modal-content
    .modal-header
      = yield :header
      - if title.present?
        %h4.modal-title
          = title
          %small= desc if desc
      %button.btn-close{'aria-label': 'Close', 'data-close': true, 'type': 'button'}
        = b_icon('cross')
    = yield
    = yield :before_body
    - body_html = capture { yield :body }
    - if body_html.present?
      .modal-body.bg-content= body_html
    = yield :after_body
    - footer_html = capture { yield :footer }
    - if footer_html.present?
      .modal-footer
        = footer_html