Closed Stehos closed 4 years ago
Hi. What version do you use?
Hi @avil13 , Vue is 2.6.12
and lib:
"vue-sweetalert2": "^4.1.1",
I tried to do it again in an example of this package, and everything worked as expected. If you comment on the styles, they do not connect.
@Stehos Check if sweetalert2
is connected separately.
@avil13 thank you for your reply. I have it done in the same way as you mentioned:
import VueSweetalert2 from 'vue-sweetalert2';
//import 'sweetalert2/dist/sweetalert2.min.css';
Vue.use(VueSweetalert2);
and it does not matter if i comment or uncomment import 'sweetalert2/dist/sweetalert2.min.css'; The style is inserted in the header inline style tag every time. I also checked, if there are no other css imports and nothing else is included - just sweetalert styles starting by:
<style>.swal2-popup.swal2-toast{flex-direction:row;align-items:cen
Once I uncomment import 'sweetalert2/dist/sweetalert2.min.css then you can see all styles included twice:
Thank you.
@Stehos is your repository private? Maybe if I could look at it, I could help. I couldn't reproduce it.
@avil13 Repository is not available but it would be helpful if we can make a short call and look at it together.
@Stehos sorry, there will be problems with this)
I have the same issue here when integrating w/ nuxt–seems like the styles are all being inlined by default.
Same issue here.. and just fixed it. I triggerd SweetAlert in my store action for which i import Swal from the base SweetAlert2 package this included the sweetalert2.all.js and that imported the css.
So maybe have a look if you include the SweetAlert2 package by itself somewhere.
Hello, is there any real way how can I remove all inline styles and include style manually only if I want?
Includes also default styling. I tried to update the file above to prevent loading styles but without any effect. Please what exactly is needed to remove? I am asking based on the description:
Thank you.