rstudio / shinydashboard

Shiny Dashboarding framework
https://rstudio.github.io/shinydashboard/
Other
894 stars 298 forks source link

Should suppress anchor tag URLs from being shown in print mode #242

Open bborgesr opened 7 years ago

bborgesr commented 7 years ago

For the kinds of interactive apps that Shiny users make, not suppressing anchor tags is probably going to be harmful more often than helpful.

We should fix this here, but in the meantime it can be worked around using CSS, if you include this line somewhere in dashboardBody:

tags$head(tags$style(type = "text/css", "@media print { a[href]:after { display: none; }}"))

This will alter the CSS to hide the offending URL.

(For unrelated reasons, this is observed in SSP, but not SSOS)

Source: Zendesk

bborgesr commented 7 years ago

@jcheng5: I'm just realizing now, is this something that should be posted in the shiny repo instead?

jcheng5 commented 7 years ago

No. This is undoing a rule that's in Admin LTE's CSS.