-
Prerequisites
Describe the issueI setup a picker and the calendar appears without any icons (time, chevrons, etc) Checked this page where it says which icons should be mapped to each area: https://getdatepicker.com/6/plugins/fa5.html In my HTML found the generated HTML didn't have the 'fas' class for the icons, as that page shows, so it's currently only 'fa-clock' instead of 'fas fa-clock'. Without the 'fas' class, the icons don't work. Tested adding that class via the browser's console and it worked. So on my min.css file I added 'fas' to all icon classes like below and it works:
Though I would prefer not to touch the code to avoid maintenance issues. Any idea why 'fas' is not added? Also found https://getdatepicker.com/6/options/ where the 'fas' class is also missing:
Note I'm using fontawesome 5.x with the fa5 plugin enabled, and doesn't seem to work. StackBlitz forkhttps://tempus-dominus-v6-simple-setup-vwfarg.stackblitz.io What operating system(s) are you seeing the problem on?Linux What browser(s) are you seeing the problem on?Firefox What version of are you using? You can find this information from the sample StackBlitz.6.2.10 What your browser's locale? You can find this information from the sample StackBlitz.en-US |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
FA6 uses You need to load the plugin first if you want it to affect all the pickers. You also need to change the icon in the html. |
Beta Was this translation helpful? Give feedback.
-
Thanks @Eonasdan i have followed this guide, where the fa5 plugin is loaded right after the picker is created https://getdatepicker.com/6/plugins/fa5.html So my code is basically line 1 and 5 which is what I used in stackblitz https://stackblitz.com/edit/tempus-dominus-v6-simple-setup-vwfarg?file=index.html,index.js (not sure why the link in the original message is not loading, try this one) |
Beta Was this translation helpful? Give feedback.
-
Please review this fork and note the changes |
Beta Was this translation helpful? Give feedback.
Please review this fork and note the changes