Fix broken classname.

This commit is contained in:
Thomas Gideon 2020-06-20 12:07:29 -04:00
parent 6a6391319e
commit c6ba1f9b11
2 changed files with 2 additions and 2 deletions

View file

@ -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>