Change html body's background color

Hi there! I have a reactable with an html title, like this:

library(reactable)
library(htmltools)

options(reactable.theme = reactableTheme(
  color = "hsl(233, 9%, 87%)",
  backgroundColor = rgb(38/255,42/255,51/255,142/240),
  borderColor = rgb(152/255,156/255,165/255,240/240)
  ))

example<- reactable(data.frame(country=c("argentina","brazil"),
                               value=c(1,2)
))

final <- htmlwidgets::prependContent(example, 
                                     list(h2(class = "title", "title 1",style="background- 
color:#696969;color:#F5F5F5"),
                                          h4(class = "subtitle", "subtitle",style="background- 
color:#696969;color:#F5F5F5")))


print(final)


There is any way I can use the same background color for both, the body and the titles? So I do not have any white spaces between the titles and the table

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.