rstudio / shinydashboard

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

SidebarMenu: badge does not line up in Firefox #240

Open shosaco opened 7 years ago

shosaco commented 7 years ago

When using a badge, it does not line up in the current devtools version:

shinyApp(
  ui = dashboardPage(
    dashboardHeader(),
    dashboardSidebar(sidebarMenu(menuItem("Widgets", badgeLabel = "new", badgeColor = "green"))),
    dashboardBody()
  ),
  server = function(input, output) { }
)

image

bborgesr commented 6 years ago

It works fine for me, both with the CRAN version and the development version:

screen shot 2017-09-08 at 4 22 12 am

If in a clean session, after a fresh install, you still see the same problem, can you give me the output you get once you enter devtools::session_info()?

shosaco commented 6 years ago

Just noticed it works fine in RStudio Browser, Chrome and IE, Firefox is the only case where it does not line up.

image

bborgesr commented 6 years ago

I can confirm that this is indeed an issue in Firefox. I'll look into it the next time that I'm working on this package. If this is critical for your app, you can tweak the CSS to make it line up (through trial and error and using your browser's developer tools). Thanks for the report!