Skip to content

Commit 0ebea4f

Browse files
authored
Make missed class_name camelCase in docs examples (#743)
1 parent 8ee4d56 commit 0ebea4f

File tree

3 files changed

+28
-28
lines changed

3 files changed

+28
-28
lines changed

docs/content/docs/icons.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -109,35 +109,35 @@ alerts = html.Div(
109109
[
110110
dbc.Alert(
111111
[
112-
html.I(class_name="bi bi-info-circle-fill me-2"),
112+
html.I(className="bi bi-info-circle-fill me-2"),
113113
"An example info alert with an icon",
114114
],
115115
color="info",
116-
class_name="d-flex align-items-center",
116+
className="d-flex align-items-center",
117117
),
118118
dbc.Alert(
119119
[
120-
html.I(class_name="bi bi-check-circle-fill me-2"),
120+
html.I(className="bi bi-check-circle-fill me-2"),
121121
"An example success alert with an icon",
122122
],
123123
color="success",
124-
class_name="d-flex align-items-center",
124+
className="d-flex align-items-center",
125125
),
126126
dbc.Alert(
127127
[
128-
html.I(class_name="bi bi-exclamation-triangle-fill me-2"),
128+
html.I(className="bi bi-exclamation-triangle-fill me-2"),
129129
"An example warning alert with an icon",
130130
],
131131
color="warning",
132-
class_name="d-flex align-items-center",
132+
className="d-flex align-items-center",
133133
),
134134
dbc.Alert(
135135
[
136-
html.I(class_name="bi bi-x-octagon-fill me-2"),
136+
html.I(className="bi bi-x-octagon-fill me-2"),
137137
"An example danger alert with an icon",
138138
],
139139
color="danger",
140-
class_name="d-flex align-items-center",
140+
className="d-flex align-items-center",
141141
),
142142
]
143143
)
@@ -153,35 +153,35 @@ alerts <- htmlDiv(
153153
list(
154154
dbcAlert(
155155
list(
156-
htmlI(class_name = "bi bi-info-circle-fill me-2"),
156+
htmlI(className = "bi bi-info-circle-fill me-2"),
157157
"An example info alert with an icon"
158158
),
159159
color = "info",
160-
class_name = "d-flex align-items-center"
160+
className = "d-flex align-items-center"
161161
),
162162
dbcAlert(
163163
list(
164-
htmlI(class_name = "bi bi-check-circle-fill me-2"),
164+
htmlI(className = "bi bi-check-circle-fill me-2"),
165165
"An example success alert with an icon"
166166
),
167167
color = "success",
168-
class_name = "d-flex align-items-center"
168+
className = "d-flex align-items-center"
169169
),
170170
dbcAlert(
171171
list(
172-
htmlI(class_name = "bi bi-exclamation-triangle-fill me-2"),
172+
htmlI(className = "bi bi-exclamation-triangle-fill me-2"),
173173
"An example warning alert with an icon"
174174
),
175175
color = "warning",
176-
class_name = "d-flex align-items-center"
176+
className = "d-flex align-items-center"
177177
),
178178
dbcAlert(
179179
list(
180-
htmlI(class_name = "bi bi-x-octagon-fill me-2"),
180+
htmlI(className = "bi bi-x-octagon-fill me-2"),
181181
"An example danger alert with an icon"
182182
),
183183
color = "danger",
184-
class_name = "d-flex align-items-center"
184+
className = "d-flex align-items-center"
185185
)
186186
)
187187
)
@@ -196,35 +196,35 @@ using DashBootstrapComponents, DashHtmlComponents
196196
alerts = html_div([
197197
dbc_alert(
198198
[
199-
html_i(class_name = "bi bi-info-circle-fill me-2"),
199+
html_i(className = "bi bi-info-circle-fill me-2"),
200200
"An example info alert with an icon",
201201
],
202202
color = "info",
203-
class_name = "d-flex align-items-center",
203+
className = "d-flex align-items-center",
204204
),
205205
dbc_alert(
206206
[
207-
html_i(class_name = "bi bi-check-circle-fill me-2"),
207+
html_i(className = "bi bi-check-circle-fill me-2"),
208208
"An example success alert with an icon",
209209
],
210210
color = "success",
211-
class_name = "d-flex align-items-center",
211+
className = "d-flex align-items-center",
212212
),
213213
dbc_alert(
214214
[
215-
html_i(class_name = "bi bi-exclamation-triangle-fill me-2"),
215+
html_i(className = "bi bi-exclamation-triangle-fill me-2"),
216216
"An example warning alert with an icon",
217217
],
218218
color = "warning",
219-
class_name = "d-flex align-items-center",
219+
className = "d-flex align-items-center",
220220
),
221221
dbc_alert(
222222
[
223-
html_i(class_name = "bi bi-x-octagon-fill me-2"),
223+
html_i(className = "bi bi-x-octagon-fill me-2"),
224224
"An example danger alert with an icon",
225225
],
226226
color = "danger",
227-
class_name = "d-flex align-items-center",
227+
className = "d-flex align-items-center",
228228
),
229229
])
230230
```

docs/content/docs/quickstart.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ app = dash.Dash(external_stylesheets=[dbc.themes.BOOTSTRAP])
139139
140140
app.layout = dbc.Container(
141141
dbc.Alert("Hello Bootstrap!", color="success"),
142-
class_name="p-5",
142+
className="p-5",
143143
)
144144
145145
if __name__ == "__main__":
@@ -156,7 +156,7 @@ library(dashBootstrapComponents)
156156
app <- Dash$new(external_stylesheets = dbcThemes$BOOTSTRAP)
157157
158158
app$layout(dbcContainer(dbcAlert("Hello Bootstrap!", color = "success"),
159-
class_name = "p-5"))
159+
className = "p-5"))
160160
161161
app$run_server(showcase = TRUE)
162162
```
@@ -171,7 +171,7 @@ app = dash(external_stylesheets=[dbc_themes.BOOTSTRAP])
171171
172172
app.layout = dbc_container(
173173
dbc_alert("Hello Bootstrap!", color="success"),
174-
class_name="p-5",
174+
className="p-5",
175175
)
176176
177177
run_server(app, "0.0.0.0", 8080)

docs/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ <h2>Get started quickly</h2>
6565
)
6666

6767
app.layout = dbc.Alert(
68-
"Hello, Bootstrap!", class_name="m-5"
68+
"Hello, Bootstrap!", className="m-5"
6969
)
7070

7171
if __name__ == "__main__":

0 commit comments

Comments
 (0)