sweetalert2

✨ A beautiful, responsive, highly customizable and accessible (WAI-ARIA) replacement for JavaScript's popup boxes. Zero dependencies. 🇺🇦

MIT License

Downloads
2.6M
Stars
16.8K
Committers
122

Bot releases are hidden (Show)

sweetalert2 - v11.0.8

Published by limonte over 3 years ago

11.0.8 (2021-05-19)

Bug Fixes

  • scss: add $swal2-html-container-word-break (fa966dd)
sweetalert2 - v11.0.7

Published by limonte over 3 years ago

11.0.7 (2021-05-17)

Bug Fixes

sweetalert2 - v11.0.6

Published by limonte over 3 years ago

11.0.6 (2021-05-17)

Bug Fixes

  • do not use runIfFunction() helper for document.activeElement.blur() (fc8f893), closes #2250
sweetalert2 - v11.0.5

Published by limonte over 3 years ago

11.0.5 (2021-05-16)

Bug Fixes

  • add scss variables for .swal2-title (a280885)
sweetalert2 - v11.0.4

Published by limonte over 3 years ago

11.0.4 (2021-05-16)

Bug Fixes

sweetalert2 - v11.0.3

Published by limonte over 3 years ago

11.0.3 (2021-05-16)

Bug Fixes

sweetalert2 - v11.0.2

Published by limonte over 3 years ago

11.0.2 (2021-05-16)

Bug Fixes

sweetalert2 - v11.0.1

Published by limonte over 3 years ago

11.0.1 (2021-05-16)

Bug Fixes

sweetalert2 - v11.0.0

Published by limonte over 3 years ago

11.0.0 (2021-05-14)

🔴 Breaking change # 1 - IE11 and Legacy Edge support is DISCONTINUED

If you need to support these old browsers in your project, please use the previous major release v10.16.7


🔴 Breaking change # 2 - .queue(), .getQueueStep(), .insertQueueStep(), .deleteQueueStep() methods are REMOVED

async/await can perfectly replace all use-cases of .queue().


🔴 Breaking change # 3 - deprecated lifecycle hooks are REMOVED

Replace them with new ones:

  • onBeforeOpen -> willOpen
  • onOpen -> didOpen
  • onRender -> didRender
  • onClose -> willClose
  • onAfterClose -> didClose
  • onDestroy -> didDestroy

🔴 Breaking change # 4 - deprecated animation param is REMOVED

Use showClass and hideClass instead:

Swal.fire({
  ...
  showClass: {
    backdrop: 'swal2-noanimation', // disable backdrop animation
    popup: '',                     // disable popup animation
    icon: ''                       // disable icon animation
  },
  hideClass: {
    popup: '',                     // disable popup fade-out animation
  },
})

🔴 Breaking change # 5 - .swal2-header and .swal2-content blocks and related methods .getHeader() and .getContent() are REMOVED

Use these alternatives instead:

  • .getHeader() -> .getTitle()
  • .getContent() -> .getHtmlContainer()

💅 Styling change # 1 - Update buttons color

Before After

💅 Styling change # 2 - Switch to CSS Grid Layout

CSS Grid provides much more possibilities for reordering elements inside a popup.

💅 Styling change # 3 - Refreshed look for toasts

💅 Styling change # 4 - Loaded in toasts moved to the left side (instead of the icon)

CleanShot 2021-05-14 at 14 56 30

sweetalert2 - v10.16.5

Published by limonte over 3 years ago

10.16.5 (2021-04-20)

Bug Fixes

  • showClass/hideClass passed via .mixin() should be treated the same as passed via .fire() (#2179) (d228741)
sweetalert2 - v10.16.7

Published by limonte over 3 years ago

10.16.7 (2021-05-02)

Bug Fixes

sweetalert2 - v10.16.6

Published by limonte over 3 years ago

10.16.6 (2021-04-22)

Bug Fixes

  • prevent shrinking of radio/checkbox inputs (5150086)
sweetalert2 - v10.16.4

Published by limonte over 3 years ago

10.16.4 (2021-04-19)

Bug Fixes

  • remove horizontal padding for .swal2-actions (446e7b5)
  • trim string params from (e779812)
  • use display: block for popup title (27fa048)
sweetalert2 - v10.16.3

Published by limonte over 3 years ago

10.16.3 (2021-04-16)

Bug Fixes

  • publish dist files to GitHub Releases (b205739)
sweetalert2 - v10.16.2

Published by limonte over 3 years ago

10.16.2 (2021-04-14)

Bug Fixes

  • sass: add $swal2-toast-content-margin variable (63d85df)
sweetalert2 - v10.16.1

Published by limonte over 3 years ago

10.16.1 (2021-04-14)

Bug Fixes

sweetalert2 - v10.16.0

Published by limonte over 3 years ago

10.16.0 (2021-04-07)

Features

sweetalert2 - v10.15.7

Published by limonte over 3 years ago

10.15.7 (2021-03-26)

Bug Fixes

  • Cannot read property 'stopKeydownPropagation' of undefined fix #2204 (541e8ab)
sweetalert2 - v10.15.6

Published by limonte over 3 years ago

10.15.6 (2021-03-17)

Bug Fixes

  • remove display: none from .swal2-validation-message (#2193) (2e4ce60)
sweetalert2 - v10.15.5

Published by limonte over 3 years ago

10.15.5 (2021-02-19)

Bug Fixes

  • mixin params added later should take precedence over mixin params added earlier (#2176) (9336fa1), closes #2174