♻️ (bootsier): Renombra form-item a form-field
This commit is contained in:
parent
ffba175985
commit
0a975cd32a
3 changed files with 3 additions and 3 deletions
|
|
@ -136,7 +136,7 @@ impl Component for Group {
|
|||
}
|
||||
|
||||
fn setup(&mut self, _cx: &Context) {
|
||||
self.alter_classes(ClassesOp::Prepend, "form-item form-item-checkboxes");
|
||||
self.alter_classes(ClassesOp::Prepend, "form-field form-field-checkboxes");
|
||||
}
|
||||
|
||||
fn prepare(&self, cx: &mut Context) -> Result<Markup, ComponentError> {
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ impl Component for Checkbox {
|
|||
}
|
||||
|
||||
fn setup(&mut self, _cx: &Context) {
|
||||
let mut classes = "form-item form-check".to_string();
|
||||
let mut classes = "form-field form-check".to_string();
|
||||
if *self.checkbox_kind() == form::CheckboxKind::Switch {
|
||||
classes.push_str(" form-switch");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ impl Component for Group {
|
|||
}
|
||||
|
||||
fn setup(&mut self, _cx: &Context) {
|
||||
self.alter_classes(ClassesOp::Prepend, "form-item form-item-radios");
|
||||
self.alter_classes(ClassesOp::Prepend, "form-field form-field-radios");
|
||||
}
|
||||
|
||||
fn prepare(&self, cx: &mut Context) -> Result<Markup, ComponentError> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue