fix(button): avoid using attribute selectors for disabled (#17198)

This commit is contained in:
Manu MA
2019-01-22 14:23:30 +01:00
committed by GitHub
parent 8e8e2fd23d
commit 3defbf3a8f
2 changed files with 11 additions and 12 deletions

View File

@ -63,6 +63,11 @@
pointer-events: none;
}
:host(.button-disabled) .button-native {
cursor: default;
opacity: .5;
pointer-events: none;
}
// Solid Button
// --------------------------------------------------
@ -229,12 +234,6 @@
border: 0;
}
.button-native[disabled] {
cursor: default;
opacity: .5;
pointer-events: none;
}
:host(.ion-focused) .button-native {
background: var(--background-focused);
color: var(--color-focused);

View File

@ -109,12 +109,6 @@
box-sizing: border-box;
}
.button-native[disabled] {
cursor: default;
opacity: .5;
pointer-events: none;
}
::slotted(ion-icon) {
line-height: 1;
}
@ -157,6 +151,12 @@
pointer-events: none;
}
:host(.fab-button-disabled) .button-native {
cursor: default;
opacity: .5;
pointer-events: none;
}
// FAB Content
// --------------------------------------------------