mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
fix(fab-button): sets pointer-events none when disabled
relates to #15129 fixes #15120
This commit is contained in:
@ -15,6 +15,8 @@
|
||||
--padding-top: calc((#{$fab-size} - var(--size)) / 2);
|
||||
--padding-bottom: calc((#{$fab-size} - var(--size)) / 2);
|
||||
|
||||
display: block;
|
||||
|
||||
color: #{current-color(contrast)};
|
||||
|
||||
font-size: 14px;
|
||||
@ -27,6 +29,9 @@
|
||||
font-kerning: none;
|
||||
}
|
||||
|
||||
:host(.fab-button-disabled) {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
:host(.activated) {
|
||||
--background: #{current-color(tint)};
|
||||
|
@ -81,6 +81,7 @@ export class FabButton {
|
||||
class: {
|
||||
...createColorClasses(this.color),
|
||||
...this.getFabClassMap(),
|
||||
'fab-button-disabled': this.disabled,
|
||||
'fab-button-translucent': this.translucent
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user