?
avatar barsdeveloper
barsdeveloper
14 Jul 2021

I'm trying to create a new template from scratch. I suspect there are some asset dependencies missing from editing view (dependencies which are added by cassipeia) because when I access the menu module edit page (com_config&view=modules&id=1&Itemid=101), the date selection widgets do not work. They can't be closed and a date can't be selected.
Cattura

avatar barsdeveloper barsdeveloper - open - 14 Jul 2021
avatar joomla-cms-bot joomla-cms-bot - change - 14 Jul 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 14 Jul 2021
avatar barsdeveloper barsdeveloper - change - 14 Jul 2021
Title
Edit module is missing some JS dependencies
[4] Edit module is missing some JS dependencies
avatar barsdeveloper barsdeveloper - edited - 14 Jul 2021
avatar barsdeveloper barsdeveloper - change - 14 Jul 2021
Title
[4] Edit module is missing some JS dependencies
[4.0] Edit module is missing some JS dependencies
avatar barsdeveloper barsdeveloper - edited - 14 Jul 2021
avatar barsdeveloper barsdeveloper - change - 14 Jul 2021
The description was changed
avatar barsdeveloper barsdeveloper - edited - 14 Jul 2021
avatar Fedik
Fedik - comment - 14 Jul 2021

You have to enable "debug mode",
Then open browser console on "broken page", and check for errors there

avatar barsdeveloper
barsdeveloper - comment - 14 Jul 2021

I don't see any JS error. I think some script that manage those calendars (make them disappear and appear only when clicking on the icon) is missing.

avatar Fedik
Fedik - comment - 14 Jul 2021

the calendar script does not have extra dependency, if I right remember

avatar barsdeveloper
barsdeveloper - comment - 18 Jul 2021

There is at least one CSS issue: when clicking on the Close button on the calendar, it adds the class "hidden" but it is not something bootstrap understands. https://getbootstrap.com/docs/5.0/helpers/visually-hidden/ or maybe "d-none" for better accessibility.
I guess it is defined somewhere in Cassiopeia but not calendar specific css.
Cattura

Another issue is the button Remove item not properly styled
Cattura

Another CSS fix:
calendar.css defines
.calendar-container {}
with background white but does not define the color. Containers that define the background color, should also define the text color because my body text is white (just defining bootstrap colors sass variables to be a dark theme) so it appears with white text on white background.

avatar dgrammatiko
dgrammatiko - comment - 19 Jul 2021

because my body text is white

You can and you should provide your own CSS override in your template for the calendar (and many other core parts). The default CSS was written with the assumption that Protostar would be the template used.

avatar Fedik Fedik - change - 22 Jul 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-07-22 15:58:40
Closed_By Fedik
avatar Fedik Fedik - close - 22 Jul 2021
avatar Fedik
Fedik - comment - 22 Jul 2021

Please test #34871

Add a Comment

Login with GitHub to post a comment