bslib icon indicating copy to clipboard operation
bslib copied to clipboard

Bootswatch 4 litera file upload alignment

Open stefanoborini opened this issue 3 years ago • 3 comments

Shiny 1.6.0 generates bs3 classes. If I use theme = bslib::bs_theme(bootswatch = "litera") it will use the css for bootstrap 4, but shiny generates bs3 classes so they apply poorly. Adding theme = bslib::bs_theme(version = 3, bootswatch = "litera") gives an error message of the theme not being available.

stefanoborini avatar Feb 22 '21 15:02 stefanoborini

Shiny 1.6.0 generates bs3 classes. If I use theme = bslib::bs_theme(bootswatch = "litera") it will use the css for bootstrap 4, but shiny generates bs3 classes so they apply poorly.

The HTML/CSS that Shiny generates should be supported by bslib's custom version of BS4 -- could you please provide specific example(s)?

Adding theme = bslib::bs_theme(version = 3, bootswatch = "litera") gives an error message of the theme not being available.

The Bootswatch 3 version of litera is called readable https://bootswatch.com/3/readable/

cpsievert avatar Feb 22 '21 15:02 cpsievert

the file upload dialog generated looks nothing like the one in bootswatch, and it's poorly aligned.

stefanoborini avatar Feb 22 '21 16:02 stefanoborini

Ah yea the alignment should be fixed

Screen Shot 2021-02-22 at 10 08 28 AM

FWIW, the styling looks different because shiny intentionally adds input-group classes whereas the example on the Bootswatch site doesn't

cpsievert avatar Feb 22 '21 16:02 cpsievert