-
Notifications
You must be signed in to change notification settings - Fork 44
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
More configurable theme; start on Bootstrap 4 support #26
Conversation
…nt.nav_ui Also update some custom styles to better accomodate Bootstrap 4
This looks really interesting @cpsievert! I'll make time to review asap. I did notice that |
Seems like this also requires the development version of shiny. the my_theme example looks great! The main issue I see is that navbar-right is being wrapped to the next line for some reason. Also happens with basic bs4. There are few other minor issues in basic bs4 that I see so far. See below paging for the DT table and the "store" button taking up two lines. I assume giving the button a bit more space (or reducing size of the +) would address the 2nd issue. Not sure about DT paging though. |
Good catches, thanks. cd88f5d solves the DT issues. I don't have a great solution in mind for the "+ Store" button (you could add back in the As for the navbar issue, this is what I see when I run |
Thanks for the update and suggestions. I'll look into this next weekend. I think the change in with navbar-right might have been introduced in the dev version of shiny. Below what it should look like with shiny 1.5.0. FYI navbar-ight is used to indicate if you are using an Rstudio project or if not what the base directory is that Radiant will use. |
Ah, yes, code like this is always gonna be susceptible to changes in shiny: radiant.data/inst/app/global.R Lines 401 to 405 in b57c25e
I think |
@cpsievert Thanks again for your help transitioning. Closing. |
This PR adds a new option,
radiant.theme
, which makes it possible to set a custom theme (without needing to know about the other defaults behindradiant.nav_ui
).The other CSS changes make things look slightly better when using Bootstrap 4 via the new
{bslib}
package. See also radiant-rstats/radiant.basics#2 which adds better support for Bootstrap 4 in{radiant.basics}
.