Semantic-ui: Checkbox right floated style support

Created on 19 Mar 2015  路  5Comments  路  Source: Semantic-Org/Semantic-UI

It'd be great if there was right floated style out of the box for checkbox

        <div class="ui toggle checkbox right floated">
            <input id="active$index" type="checkbox" name="active" ng-model="item.active"/>
            <label for="active$index">Send this header</label>
        </div>

I created my own style:

.ui.toggle.checkbox[class*="right floated"] {
    float: right !important;
    margin-right: 0em !important;
    margin-left: 1em !important;
}
FiChange Declined

Most helpful comment

I would say that right float for a toggle checkbox is a very common use case. It is especially common in settings menus.

All 5 comments

I have no plans to add left/right float to arbitrary elements unless its a very common use case.

I have also been using this functionality a lot in recent projects. It is easy enough to implement yourself as a user anyway. I wouldn't be opposed to seeing it more widely across the board though.

I would say that right float for a toggle checkbox is a very common use case. It is especially common in settings menus.

I also need to have the checkbox on the right, I would be super helpful to have a left right option. It possible to move it using styling, we are trying to be as minimal with our style additions as possible as we build our new frontend.

The community fork https://fomantic-ui.com just merged a PR to support right aligned checkboxes for upcoming v2.8.8
https://github.com/fomantic/Fomantic-UI/pull/1670
image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

kntmrkm picture kntmrkm  路  3Comments

davialexandre picture davialexandre  路  3Comments

ghost picture ghost  路  3Comments

deneuxa picture deneuxa  路  3Comments