mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(button): disabled attr on button css styling
This commit is contained in:
3
ionic/components/app/normalize.scss
vendored
3
ionic/components/app/normalize.scss
vendored
@@ -127,7 +127,8 @@ button {
|
||||
}
|
||||
|
||||
// Re-set default cursor for disabled elements.
|
||||
.button-disabled,
|
||||
a[disabled],
|
||||
button[disabled]
|
||||
html input[disabled] {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ a.button {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.button-disabled {
|
||||
.button[disabled] {
|
||||
opacity: 0.4;
|
||||
cursor: default !important;
|
||||
pointer-events: none;
|
||||
|
||||
@@ -35,4 +35,8 @@
|
||||
<button dark class="activated">Dark.activated</button>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<button disabled>Disabled</button>
|
||||
</p>
|
||||
|
||||
</ion-content>
|
||||
|
||||
Reference in New Issue
Block a user