mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
fix(item-option): styling and behaviour for disabled item-option (#17909)
fixes #17905
This commit is contained in:
committed by
Liam DeBeasi
parent
51614c1b32
commit
346ecb2a3c
@ -112,3 +112,17 @@
|
||||
transition-property: none;
|
||||
transition-timing-function: cubic-bezier(.65, .05, .36, 1);
|
||||
}
|
||||
|
||||
|
||||
// Item Disabled Styling
|
||||
// --------------------------------------------------
|
||||
|
||||
:host(.item-option-disabled) {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
:host(.item-option-disabled) .button-native {
|
||||
cursor: default;
|
||||
opacity: .5;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@ -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,
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user