# Change Ionic checkbox from circle to rectangle

**URL:** <https://forum.ionicframework.com/t/change-ionic-checkbox-from-circle-to-rectangle/25008>\
**Category:** uncategorized\
**Created:** [May 17, 2015, 3:42pm UTC](https://forum.ionicframework.com/t/change-ionic-checkbox-from-circle-to-rectangle/25008 "2015-05-17T15:42:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wassimans](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/wassimans/32/73784_2.png) [@wassimans](https://forum.ionicframework.com/u/wassimans)\
**Post date:** [May 17, 2015, 3:42pm UTC](https://forum.ionicframework.com/t/change-ionic-checkbox-from-circle-to-rectangle/25008/1 "2015-05-17T15:42:13Z")

</div>

Hi all.

My CSS skills aren’t top, and I need to change the shape of the Ionic checkbox from it’s default one: a circle, to a rectangle. How would I do that?

Thanks.

---

<div class="post-metadata">

**Author:** ![flynnc](https://avatars.discourse-cdn.com/v4/letter/f/91b2a8/32.png) [@flynnc](https://forum.ionicframework.com/u/flynnc)\
**Post date:** [May 17, 2015, 5:20pm UTC](https://forum.ionicframework.com/t/change-ionic-checkbox-from-circle-to-rectangle/25008/2 "2015-05-17T17:20:37Z")

</div>

Just add:  
class=“checkbox-square”

---

<div class="post-metadata">

**Author:** ![wassimans](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/wassimans/32/73784_2.png) [@wassimans](https://forum.ionicframework.com/u/wassimans)\
**Post date:** [May 19, 2015, 8:31am UTC](https://forum.ionicframework.com/t/change-ionic-checkbox-from-circle-to-rectangle/25008/3 "2015-05-19T08:31:51Z")

</div>

Sorry @flynnc it didn’t work. I even searched for the class `checkbox-square` in Ionic’s CSS files, but without a single match.

---

<div class="post-metadata">

**Author:** ![Dupade](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@Dupade](https://forum.ionicframework.com/u/Dupade)\
**Post date:** [October 23, 2015, 1:52pm UTC](https://forum.ionicframework.com/t/change-ionic-checkbox-from-circle-to-rectangle/25008/4 "2015-10-23T13:52:18Z")

</div>

It works, you need to wrap the input tag inside the label and have to add this class to label tag like below

label class="checkbox checkbox-square  
input type="checkbox"  
label

I have removed the ‘\<’ & ‘\>’ tags from above code since it was not showing anything when I was adding this.

I am new to this community so I don’t know much about adding comment, sorry for any mistakes.  
Thank you.

---

<div class="post-metadata">

**Author:** ![idacrobert](https://avatars.discourse-cdn.com/v4/letter/i/977dab/32.png) [@idacrobert](https://forum.ionicframework.com/u/idacrobert)\
**Post date:** [December 18, 2015, 6:32pm UTC](https://forum.ionicframework.com/t/change-ionic-checkbox-from-circle-to-rectangle/25008/5 "2015-12-18T18:32:55Z")

</div>

```
myModule.config(function ($ionicConfigProvider) {
    $ionicConfigProvider.form.checkbox("circle");
});

```

This worked for me for the opposite situation and overrides the platform style set by ionic (it defaults to square on Android). I imagine changing “circle” to “square” would work for the OP’s use case.
