facultyai / dash-bootstrap-components

Bootstrap components for Plotly Dash
https://dash-bootstrap-components.opensource.faculty.ai/
Apache License 2.0
1.1k stars 219 forks source link

V1 Themes Documentation includes reference to Bootstrap V4 #730

Closed glsdown closed 2 years ago

glsdown commented 2 years ago

Currently the v1 documentation states:

dash-bootstrap-components doesn't come with CSS included. This is to give you the freedom to use any Bootstrap v4 stylesheet of your choice, so you can achieve the look you want in your app.

As v1 is using Bootstrap 5, this should be updated.

AnnMarieW commented 2 years ago

While someone is in the neighborhood, here are a couple more minor docs updates:

In the Icons section, we should make it really clear which version is used. I've noticed that there are many changes between FontAwesome versions -- and the icons just don't appear if you use the wrong syntax or try to use an icon that is not in the version we link to.

In the first paragraph in the layout section it says:

The Bootstrap grid has twelve columns, and five responsive tiers (allowing you to specify different behaviours on different screen sizes, see below).

But there are six responsive tiers now with the new XXL tier

glsdown commented 2 years ago

Doing a deep-dive to catch any more of these ready for a clear up. I haven't checked the props documentation though if anyone wants to take that beast on!

General

Homepage

Quickstart

Examples

Themes

Theme Explorer

Icons

Components

Breadcrumb

Buttons

Card

DropdownMenu

Fade

Form

Input

Layout

Navs

Spinner

Tabs

Toasts

FAQs

tcbegley commented 2 years ago

With the icons, I'm not sure adding a version number to the docs is any more discoverable than someone just doing

print(dbc.icons.BOOTSTRAP)

or similar? What do you think? Happy to be convinced otherwise but I might defer this change to a later PR.

glsdown commented 2 years ago

@tcbegley I think that people wouldn't really know to do that though - I certainly wouldn't. Also, including in the docs makes it something people think about rather than spending ages on debugging why it isn't working.

AnnMarieW commented 2 years ago

I agree with @glsdown - print(dbc.icons.BOOTSTRAP) is a neat trick that not everyone knows about. Then, once you do that, you need to know to go to the correct version of the FontAwesome (or Bootstrap icons) docs to check on the icon.

This is helpful to add to the dbc docs because if the the icons aren't showing up, people are likely to go to the icon section of the dbc docs to get some help.

tcbegley commented 2 years ago

Ok, you've convinced me, let's add it in 👍