slick icon indicating copy to clipboard operation
slick copied to clipboard

Integration with CMS

Open craigedmunds opened this issue 4 years ago • 3 comments

We've integrated slick into our CMS (Odoo), which loads its dependencies in a particular way. We've managed to get everything loaded and there are no JS errors, but the slick slider isn't displaying correctly.

image

====================================================================

Steps to reproduce the problem

We've created a test page here: https://test.accasports.com/hanna2

We've noticed that if we remove the transform element style from the slick-track element, the slider content appears, which seems strange.

image

More Details

  • Chrome
  • jQuery 3.3.1 / Slick 1.8.1
  • It works on a test page outside our CMS whe

craigedmunds avatar Jun 15 '20 14:06 craigedmunds

Hi, I've traced the problem to a CSS override file in our CMS:

https://github.com/odoo/odoo/blob/13.0/addons/web/static/src/scss/ui.scss http://test.accasports.com/web/static/src/scss/web.assets_common/ui.scss.css

And specifically the line:

[aria-hidden="true"], [aria-hidden="1"] { display: none !important; }

I can see that you do set aria hidden to false during the sliding so it's pretty weird!

By the way, I'm using Chrome 83.0.4103.97 on Mac

craigedmunds avatar Jun 15 '20 16:06 craigedmunds

Aria attributes are for screen readers and shouldn't really affect the visibility of elements.

You probably don't want to rewrite the cms css so can't you override that rule for the slider?

robwent avatar Aug 21 '20 13:08 robwent

Can you make a tutorial on how you integrated it please?

plancerio2020255 avatar Jan 19 '24 16:01 plancerio2020255