RinteRface / bs4Dash

Bootstrap 4 shinydashboard using AdminLTE3
https://bs4dash.rinterface.com
Other
441 stars 81 forks source link

valueBox value size? #378

Open dataquine opened 4 months ago

dataquine commented 4 months ago

I have a question regarding the expected behaviour/usage of valueBox in bs4Dash (2.3.3).

In bs4DashGallery the "Value/Info boxes" option shows something like Screenshot 2024-06-30 at 16 38 31

whereas in shinydashboard value boxes have the value displayed in larger text. https://rstudio.github.io/shinydashboard/structure.html#valuebox body-valueboxes

Is the smaller sized text for the value expected behaviour or a bug?

The AdminLTE demo shows the larger sized version https://adminlte.io/themes/AdminLTE/pages/widgets.html There is a h3 tag around the value in the HTML. Screenshot 2024-06-30 at 16 54 01

Adding a h3 manually gives the same result

valueBox(
          value = h3(150),
          subtitle = "New orders",
          color = "primary",
          icon = icon("shopping-cart"),
          href = "#"
        )

Screenshot 2024-06-30 at 16 50 01