sweetalert css not used
See original GitHub issueI’m using sweetalert in a vue js app. And i’m using this by importing via typescript import swal from 'sweetalert2'
. This works for sweetalert 1, but not sweetalert 2. It’s being replaced by Semantic UI css.
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
How can I use Sweetalert with CSS applied? - Stack Overflow
There is nothing wrong with your implementation. SweetAlert2 uses font-family: inherit; , so it will take parent font.
Read more >Guides - SweetAlert
Using promises. SweetAlert uses promises to keep track of how the user interacts with the alert. If the user clicks the confirm button,...
Read more >SweetAlert2 - a beautiful, responsive, customizable and ...
A beautiful, responsive, customizable and accessible (WAI-ARIA) replacement for JavaScript's popup boxes.
Read more >Sweet Alert - Common Style Inventory
SweetAlert automatically centers itself on the page and looks great no matter if you're using a desktop computer, mobile or tablet.
Read more >SweetAlert Library Introduction and Installation with the Example
It's a standalone library that has no dependencies, and it's made from a JavaScript file plus a CSS file. Sweet Alert is used...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We recently released v6.10.0 which contains all-in-one version with JS and CSS in one place.
You can import it this way:
PS. In the next major version (v7.0.0) the combined JS + CSS version sweetalert2.all.min.js will be the default entry point and it will be possible to import it as usual:
import swal from 'sweetalert2'
That’s strange. I mean, there’s no reason for the styles for not applying as soon as they’re loaded. We don’t use any bizarre technique, just plain CSS. It may be a framework-specific problem (styles encapsulation maybe? But usually frameworks don’t mind about global styles). Would you please send us a plunkr/jsfiddle link so we can actually see what’s going on?