Closed yogat3ch closed 3 years ago
It looks it had to do with the main_header
as the first step. Using the sidebar step as the first step appears to launch Cicerone as intended. However, it looks like everything that is backgrounded by the sidebar being open is not selectable by Cicerone
and it skips all steps involving any element in the background?
Seems like it just has to do with how IDs and classes are specified! Closing this
I'm sorry I didn't answer, I was away last week and coming back to a mountain of work now.
No worries, it was all my error anyway!
Hi @JohnCoene, We're just using all your packages!
We have a golem app that's using
tippy
andcicerone
. If you would like I can open another issue abouttippyTheme
not working (see below) or cross reference it, just let me know.We've included resources in
golem_add_external_resources
function with mod_theme_ui:golem_add_external_resources <- function(){
golem::add_resource_path( 'www', app_sys('app/www') )
tags$head( mod_theme_ui("theme"), golem::favicon(), golem::bundle_resources( path = app_sys('app/www'), app_title = 'crsspierViz' )
Add here other external resources
) } mod_theme_ui is pretty straightforward:
mod_theme_ui <- function(id){ ns <- shiny::NS(id) shiny::tagList( cicerone::use_cicerone(), tippy::useTippy(), tippy::tippyTheme("tip_theme", box_bg = crssp_theme$bg, box_color = crssp_theme$primary, content_bg = crssp_theme$bg, content_color = crssp_theme$
text-color
) ) }The
cicerone
setup is as follows:When I search the DOM for
cicerone
I can find the js loading in thehead
portion of the page.I've tried
start
ingguide
withguide$init()$start()
inapp_server
,mod_welcome_server
(the page that loads on start), and inmod_theme_server
.My questions are as follows:
I used
debugonce(guide$start)
and it appears like this method is firing, but thecicerone
guide isn't loading?Could the tippyTheme method be creating a nested head tag nested inside the head tag with our current setup and that's why it's not working properly?
Any advice will be appreciated, Stephen