Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/consistency with button animations #2351

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,18 @@
[attr.data-rowname]="_row.name"
></plh-template-component>
</span>
<ion-ripple-effect></ion-ripple-effect>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The card variant already had a ripple effect, so this can be removed as it is redundant

</ion-button>

<!-- "card-portrait" variant. This variant is not achievable using an ion-button -->
<div
*ngSwitchCase="true"
class="button-container"
class="button-container ion-activatable"
(click)="triggerActions('click')"
[attr.data-variant]="params.variant"
[attr.data-has-children]="_row.rows ? true : false"
>
<ion-ripple-effect type="unbound"></ion-ripple-effect>
kwAsant marked this conversation as resolved.
Show resolved Hide resolved
<img *ngIf="params.image" src="{{ params.image | plhAsset }}" />
<div *ngIf="_row.value" [class]="'button-text ' + params.textAlign">
{{ _row.value }}
Expand All @@ -47,6 +49,7 @@
[parent]="parent"
[attr.data-rowname]="_row.name"
></plh-template-component>
<ion-ripple-effect></ion-ripple-effect>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be removed – the button itself already has a ripple effect applied by line 39

</span>
</div>
</ng-container>
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ ion-button[data-variant~="card"] {
padding: 1.5rem 0.5rem 0.5rem;
// TODO: make a variable
width: 160px;
overflow: hidden;

&:active {
background-color: var(--ion-color-gray-light);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div [class]="style" class="tile-wrapper default_style" (click)="triggerActions('click')">
<div [class]="style" class="tile-wrapper default_style ion-activatable" (click)="triggerActions('click')">
<div *ngIf="left_icon_src" class="left-icon">
<ion-icon *ngIf="!isCustomIcon" [name]="left_icon_src"></ion-icon>
</div>
Expand All @@ -24,6 +24,7 @@
alt=""
/>
<ion-icon *ngIf="!isCustomIcon" [name]="icon_src"></ion-icon>
<ion-ripple-effect></ion-ripple-effect>
</ion-button>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ $background-secondary-light: var(
--box-shadow: none;

box-shadow: none;
--ripple-color: transparent;
// --ripple-color: transparent; // why was this there?
kwAsant marked this conversation as resolved.
Show resolved Hide resolved
img {
width: 60px;
height: 60px;
Expand All @@ -61,6 +61,7 @@ $background-secondary-light: var(
box-shadow: var(--ion-default-box-shadow);
min-height: var(--tile-default-height);
border-radius: var(--ion-border-radius-standard);
overflow: hidden;
}

/***********************************************************************************************
Expand Down
Loading