ng-lightning / ng-lightning

Native Angular components & directives for Lightning Design System

Home Page:http://ng-lightning.github.io/ng-lightning/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Attribute "stacked" not applied on "ngl-checkbox-toggle"

alex-vladut opened this issue · comments

In the documentation for Checkbox components there is an example containing the attribute stacked in order to show the label and checkbox on distinct lines. This works fine for a regular checkbox, but is not applied for the toggle type one.
Also, even though the label states Stacked layout the stacked attributes is not actually applied (applying the attribute doesn't make any difference to the way the component is displayed):

    <ngl-checkbox-toggle label="Stacked layout" [error]="hasError ? error : null" enabledText="Active" disabledText="Inactive">
      <input ngl type="checkbox" [required]="required" [disabled]="disabled">
    </ngl-checkbox-toggle>

The example is taken from this page: http://ng-lightning.github.io/ng-lightning/#/components/checkboxes