fix(item-option): styling and behaviour for disabled item-option (#17909)

fixes #17905
This commit is contained in:
Kelvin Dart
2019-03-28 18:20:29 +00:00
committed by Liam DeBeasi
parent 51614c1b32
commit 346ecb2a3c
4 changed files with 42 additions and 2 deletions

View File

@ -60,10 +60,12 @@ export class ItemOption implements ComponentInterface {
}
hostData() {
const { disabled, expandable } = this;
return {
class: {
...createColorClasses(this.color),
'item-option-expandable': this.expandable,
'item-option-disabled': disabled,
'item-option-expandable': expandable,
'ion-activatable': true,
}
};