Skip to content

Commit

Permalink
fix(button): style disabled anchor/button elements
Browse files Browse the repository at this point in the history
add opacity and remove pointer events

closes #6108
  • Loading branch information
brandyscarney committed May 20, 2016
1 parent aeeae3f commit d0abbaf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/components/button/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ a[button] {
text-decoration: none;
}

a[disabled],
button[disabled],
.button[disabled] {
cursor: default;
opacity: .4;
Expand Down
12 changes: 6 additions & 6 deletions src/components/item/test/buttons/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@
<button outline item-right (click)="testClick($event)">Outline</button>
</ion-item>

<ion-item>
<button ion-item disabled>
<button item-left (click)="testClick($event)">
<ion-icon name="home"></ion-icon>
Left Icon
</button>
left icon buttons
disabled left icon buttons
<button outline item-right (click)="testClick($event)">
<ion-icon name="star"></ion-icon>
Left Icon
</button>
</ion-item>
</button>

<ion-item>
<button item-left (click)="testClick($event)">
Expand All @@ -58,13 +58,13 @@
</button>
</ion-item>

<ion-item>
ion-item right icon/text button large
<a ion-item disabled>
a ion-item disabled right icon/text button large
<button item-right large (click)="testClick($event)">
<ion-icon name="refresh"></ion-icon>
Refresh
</button>
</ion-item>
</a>

<ion-item>
<button clear item-left small (click)="testClick($event)">
Expand Down

0 comments on commit d0abbaf

Please sign in to comment.