By default, Sencha Touch 1.1 provides a radiofield
and a checkboxfield
which show a check mark (tick). Because of this design, there is no visual way to differentiate between them.
How can I change the look of the radiofield
so that it looks like a traditional radio button?
I added my own styles to change the look of the checkbox.
.x-field .x-input-radio:after, .x-field .x-input-radio:checked:after {
content: "";
position: absolute;
width: 1.25em;
height: 1.25em;
top: 50%;
left: auto;
-webkit-transform: rotate(0deg) skew(0deg);
-webkit-transform-origin: 50% 50%;
-webkit-border-radius: 2em;
right: 1.1em;
border: .45em solid;
margin-top: -0.75em;
}
.x-field .x-input-radio:checked:after {
border-color: #06346a;
}
.x-field .x-input-radio:after {
border-color: #dddddd;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With