Fixed indeterminate checkboxes visual issue with minus icon
parent
3ec1a7446a
commit
ec709813b0
|
@ -16,6 +16,7 @@
|
||||||
transition-property: transform;
|
transition-property: transform;
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-checkbox-box.p-highlight .p-checkbox-icon {
|
.p-checkbox-box.p-highlight .p-checkbox-icon ,
|
||||||
|
.p-checkbox-box.p-indeterminate .p-checkbox-icon {
|
||||||
transform: scale(1);
|
transform: scale(1);
|
||||||
}
|
}
|
|
@ -294,7 +294,7 @@ export default {
|
||||||
}];
|
}];
|
||||||
},
|
},
|
||||||
checkboxClass() {
|
checkboxClass() {
|
||||||
return ['p-checkbox-box', {'p-highlight': this.checked}];
|
return ['p-checkbox-box', {'p-highlight': this.checked, 'p-indeterminate': this.partialChecked}];
|
||||||
},
|
},
|
||||||
checkboxIcon() {
|
checkboxIcon() {
|
||||||
return ['p-checkbox-icon', {'pi pi-check': this.checked, 'pi pi-minus': this.partialChecked}];
|
return ['p-checkbox-icon', {'pi pi-check': this.checked, 'pi pi-minus': this.partialChecked}];
|
||||||
|
|
|
@ -233,7 +233,7 @@ export default {
|
||||||
return this.selectionMode === 'checkbox';
|
return this.selectionMode === 'checkbox';
|
||||||
},
|
},
|
||||||
checkboxClass() {
|
checkboxClass() {
|
||||||
return ['p-checkbox-box', {'p-highlight': this.checked, 'p-focus': this.checkboxFocused}];
|
return ['p-checkbox-box', {'p-highlight': this.checked, 'p-focus': this.checkboxFocused, 'p-indeterminate': this.partialChecked}];
|
||||||
},
|
},
|
||||||
checkboxIcon() {
|
checkboxIcon() {
|
||||||
return ['p-checkbox-icon', {'pi pi-check': this.checked, 'pi pi-minus': this.partialChecked}];
|
return ['p-checkbox-icon', {'pi pi-check': this.checked, 'pi pi-minus': this.partialChecked}];
|
||||||
|
|
Loading…
Reference in New Issue