rstudio / shinythemes

Themes for Shiny
http://rstudio.github.io/shinythemes/
Other
152 stars 78 forks source link

Using shinythemes breaks glyphicons #1

Closed wch closed 9 years ago

wch commented 9 years ago

When shinythemes is used in an application, it breaks glyphicons. These are used in Shiny's datepicker for the arrows.

Example app:

library(shiny)
library(shinythemes)

shinyApp(
  ui = fluidPage(
    theme = shinytheme("cerulean"),
    "An icon:", icon("calendar", lib = "glyphicon"),
    dateInput("date", "Date:")
  ),
  server = function(input, output) { }
)

image

The problem is that the css for the themes contains this reference for the fonts:

src:url('../fonts/glyphicons-halflings-regular.eot');

But the fonts are contained in /shared/bootstrap/fonts/, not /fonts/.

Possible paths for fixing it (and roadblocks):

wch commented 9 years ago

This is fixed in 5c5d5da, by adding the glyphicon fonts to this package.