Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Differentiate look of Radiofield and Checkbox field in Sencha Touch 1.1

Tags:

sencha-touch

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.

Sencha Touch radiofield

How can I change the look of the radiofield so that it looks like a traditional radio button?

like image 800
Anthony Avatar asked Nov 04 '22 07:11

Anthony


1 Answers

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;
}
like image 62
Anthony Avatar answered Nov 10 '22 01:11

Anthony