This PR makes icon_svg() look much better inside a shiny value_box(), for example:
import faicons as fa
from shiny.express import ui
with ui.value_box(showcase=fa.icon_svg("gear")):
"A value box"
"With a value"
Before
After
It does this by including a class="fa" to the <svg> markup, which {bslib} will recognize as a fontawesome icon, and thus add the gradient and font-size style.
This PR makes
icon_svg()
look much better inside a shinyvalue_box()
, for example:Before
After
It does this by including a
class="fa"
to the<svg>
markup, which{bslib}
will recognize as a fontawesome icon, and thus add the gradient andfont-size
style.