Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to align checkbox to the right #1290

Closed
fredgalvao opened this issue May 6, 2014 · 12 comments
Closed

Make it possible to align checkbox to the right #1290

fredgalvao opened this issue May 6, 2014 · 12 comments
Assignees

Comments

@fredgalvao
Copy link

I was able to achieve this with very little code change on codepen, and I think it's quite a nice addition to the checkbox feature having item-checkbox-right and item-checkbox-left just like pretty much everything list-wise.

http://codepen.io/fredgalvao/pen/ctKwp

I could make a PR on the weekend if it's deemed necessary, but I think this is a pretty small change and could come into tomorrow's beta?
Looking forward to this.

@ajoslin
Copy link
Contributor

ajoslin commented May 9, 2014

I like it! Sorry we didn't get to this issue in time for beta.4. But there's always next Wednesday's beta!

A PR would be welcomed.

@111crb111
Copy link

seems like ionic change checkbox style and right side checkbox buggy now

@smorstabilini
Copy link

@111crb111 if you replace

<ion-item class="item-checkbox" ...

with

<ion-item class="item-checkbox-right" ...

it doesn't work.
But if you use instead of it does work. see fredgalvao' codepen.
Hope this helps

@ryandraper
Copy link

Just what I needed! Thanks @fredgalvao :)

@fredgalvao
Copy link
Author

This is supposed to work out-of-the-box on ionic now, since @adamdbradley / @ajoslin brought the codepen into native ionic css. If it's not working, it's a regression of some sort and it should be fixed or looked into, I guess.

Anyways, you're welcome, @ryandraper !

@pablomaurer
Copy link

should be documented http://ionicframework.com/docs/components/#checkbox

@lucassch
Copy link

lucassch commented Oct 2, 2015

docs?

@bitsagarob
Copy link

Doesn't seem to be working in Ionic 2.0.0-beta.24 with an ion-checkbox inside an ion-item using @fredgalvao codepen style. Is there a syntax to make this work out-of-the-box in Ionic2 like ion-checkbox-right ?

@meicj
Copy link

meicj commented Apr 20, 2016

I met the same problem, and found it works perfect by <ion-checkbox class="item-checkbox-right"> . Thanks a lot @fredgalvao @smorstabilini . Hope a doc on http://ionicframework.com/docs/components/#checkbox

@prosenjit-manna
Copy link

prosenjit-manna commented Dec 9, 2016

.item-checkbox-right {
  flex-direction: row-reverse;
}

<ion-item class="item-checkbox-right">

@rodneyjoyce
Copy link

I found this worked for me: https://ionicframework.com/docs/api/components/item/Item/

Use an "item-end"

Checkboxes, Radios and Toggles
Checkboxes are positioned in the same place as the item-start attribute. Radios and Toggles are positioned in the same place as the item-end attribute. All of these components can be positioned differently by adding the item-start or item-end attribute.

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 2, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests