Skip to content

Commit

Permalink
fix(toast): button color is contrast
Browse files Browse the repository at this point in the history
fixes #15737
  • Loading branch information
manucorporat committed Sep 25, 2018
1 parent 5f5ba66 commit f65ec10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions core/src/components/toast/toast.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ ion-toast {
}

.toast-button {
--color: inherit;

font-size: $toast-button-font-size;
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/toast/toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export class Toast implements ComponentInterface, OverlayInterface {
<div class="toast-message">{this.message}</div>
}
{this.showCloseButton &&
<ion-button fill="clear" color="light" ion-activatable class="toast-button" onClick={() => this.dismiss(undefined, 'cancel')}>
<ion-button fill="clear" ion-activatable class="toast-button" onClick={() => this.dismiss(undefined, 'cancel')}>
{this.closeButtonText || 'Close'}
</ion-button>
}
Expand Down

0 comments on commit f65ec10

Please sign in to comment.