Reputation: 2085
ionic check boxes are showing square in android but in IOS its shows rounded.
How we can make them square for IOS?
Upvotes: 2
Views: 8086
Reputation: 1
the code bellow works for the Ionic version 3:
.item {
.checkbox {
.checkbox-icon {
border-radius: 0% !important;
}
}
}
Upvotes: 0
Reputation: 388
Change checkbox-md will fix this issue. in your html file set, class="checkbox-md"
Upvotes: 0
Reputation: 21
Add this to your scss file.
.checkbox-icon {
border-radius: 0%!important
}
Upvotes: 0
Reputation: 37
Native iOS uses switches. Ionic tries to use components that are like native controls. Not too successfully this time, but perhaps circles are closer to the native iOS feeling. So I'd stick with it: using ionic means also to follow their design.
Upvotes: 0
Reputation: 154
You can set globally with: $ionicConfigProvider.form.checkbox("circle");
angular.module('app', ['ionic', ...])
.config(function($ionicConfigProvider) {
$ionicConfigProvider.form.checkbox("square");
//code
})
More information: here
Upvotes: 1
Reputation: 633
Use checkbox-square system defind css class in your checkbox class.
<ion-checkbox class="checkbox-square" ng-model="isCheckedCommercial">value 1</ion-checkbox>
this will helps you. If you have any query let me know.
Upvotes: 5