Closed danMoses10 closed 4 years ago
@danMoses10 Hi, seems that your HTML is a little bit off.
Try this out:
<template>
<vue-hotel-datepicker style="max-width: 400px;" />
</template>
<script>
import "vue-hotel-datepicker/dist/vueHotelDatepicker.css";
import VueHotelDatepicker from "vue-hotel-datepicker";
export default {
name: "App",
components: {
VueHotelDatepicker
}
};
</script>
Hi, I have tried this but it is still not loading the css, I am having to copy the scss files to my local folder for it to work, which I would rather not do @matiasperrone
@danMoses10 please provide a tarball or codesandbox of your reproducible issue and I'll have a look into it.
@superbiche it's ok man thanks, I moved onto a different datepicker
@danMoses10 may you anyway provide us anyway with your example, to look for clues? maybe there are others with the same issue.
Since no followup, I guess this can be closed. This works for me:
import 'vue-hotel-datepicker/dist/vueHotelDatepicker.css'
This work around of importing the CSS directly works, but is there clarity on why this happens? Without the CSS import all the functionality / logic works but simply no styling. For context I am using Nuxt.js (v2.14.6), and importing it the standard way as per your documentation.
Cheers
This is not a workaround, is the best way that you may restyle it without interference.
my single file component contains the vue-hotel-datepicker, I can initialise the datepicker, but the css doesn't take effect.
html:
**Expected behavior: datepicker to load with css styling
Actual behavior:datepicker loads with no styling
Datepicker Version: ^4.0.0-beta.9