Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

valueBox value size? #378

Open
dataquine opened this issue Jun 30, 2024 · 0 comments
Open

valueBox value size? #378

dataquine opened this issue Jun 30, 2024 · 0 comments

Comments

@dataquine
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant