Label class in vertical forms (col-lg-2) is too small

Issue #10 resolved
Spyros Solda created an issue

When the form is inside a panel that has a medium width (eg col-md-5) the label if it has more than 1 words or a required class it breaks to two or more lines

I think it's better to use full width (since the layout is vertical and no component is next to the label)

if($layout === BSHtml::FORM_LAYOUT_VERTICAL){
  BSHtml::addCssClass('md-12',$labelOptions);
  return $labelOptions;
}

Comments (4)

  1. Pascal Brewing repo owner

    $options['labelOptions'] = $this->setLabelOptionsByLayout($this->layout,$labelOptions);

  2. Log in to comment