I used textAreaInput() in dashboardHeader to allow multiple lines in the header. But the background color of this text area is white and can't blend into the title panel there. I want to change the background color of this text area to either transparent or the same color as used in the dashboardHeader. I've tried something like below. But it does not work. Any suggestions? Thank you!
library(shiny)
library(shinydashboard)
shinyApp(server = function(input, output) {}, ui =
dashboardPage(skin = "blue",
dashboardHeader(
title = textAreaInput(inputId = 'header',label = NULL,
width = 250, height = 100,
value = "This is a very very very very very loooooong title"
),
titleWidth = 260
),
dashboardSidebar(
width = 260,
sidebarMenu(
menuItem("About", tabName = "about", icon = icon("circle")),
menuItem("References", tabName = "ref", icon = icon("book"))
)
),
dashboardBody(
tags$head(tags$style(HTML('
.textArea {
background-color: #0000ff;
border: none;
}
'))),
tabItems(
tabItem(tabName = 'about'),
tabItem(tabName = 'ref')
)
)
))