Granite jQuery UI interferes with site jQuery UI (dialogs etc)
Hi,
we are using jQuery UI with custom extensions in our sites to create, for example, dialogs using jQuery UI dialog. In the author environment, we are facing issues because CQ also adds imports of jQuery UI (JS and CSS). In the page source there is a JS script block where GraniteClientLibraryManager.write is called, importing for example /etc/clientlibs/granite/jquery-ui.js and /etc/clientlibs/granite/jquery-ui.css.
Where is jquery UI (dialogs etc) used by the authoring environment?
Is there a proposed best approach to be able to use jQuery UI in a site without clashes with the authoring environment?
Would it be possible to enclose the CQ/Granite dialogs in an own UI widget CSS class name to separate it from our site specific UI? One solution we have thought of is to reset the jQuery UI styles using our own overriding CSS, but this does not seem like a suitable solution since it would require more CSS to load and simply unnecessary work.
Any input on this would be much appreciated
Thanks,
Joakim