Browse Source

Fix broken classname.

main
Thomas Gideon 2 years ago
parent
commit
c6ba1f9b11
  1. 2
      Cargo.toml
  2. 2
      src/alert/mod.rs

2
Cargo.toml

@ -1,6 +1,6 @@
[package]
name = "bootstrap-rs"
version = "0.2.5"
version = "0.2.6"
authors = ["Thomas Gideon <cmdln@thecommandline.net>"]
edition = "2018"

2
src/alert/mod.rs

@ -54,7 +54,7 @@ impl Component for Alert {
}
fn view(&self) -> Html {
let color_class = self.props.color.with_prefix("alert-");
let color_class = self.props.color.with_prefix("alert");
let class = calculate_classes(format!("alert {}", color_class), (&self.props).into());
html! {
<div class=class>

Loading…
Cancel
Save