From b83e33407b1e5bf81bf019b819251f482b17f27a Mon Sep 17 00:00:00 2001 From: Alan Dipert Date: Fri, 12 Oct 2018 12:04:16 -0700 Subject: [PATCH] Make sidebar-toggle bars icon work on Shiny 1.2 with FontAwesome 5 --- inst/shinydashboard.css | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/inst/shinydashboard.css b/inst/shinydashboard.css index 1bee0459..34b89686 100644 --- a/inst/shinydashboard.css +++ b/inst/shinydashboard.css @@ -68,3 +68,14 @@ a > .info-box { .shiny-server-account { z-index: 2000; } + +/* fontAwesome is the FA4 family name; 'Font Awesome 5 Free' is the FA 5 name. + * This rule makes the sidebar-toggle 'bars' icon appear properly both in + * Shiny <= 1.1 (FA4) and Shiny 1.2+ (FA5). + * The font-weight value is for FA5, as multiple styles are mapped + * to different weights. + */ +.main-header .sidebar-toggle { + font-family: fontAwesome, 'Font Awesome 5 Free'; + font-weight: 900; +}