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
Empty file modified packages/scripts/bin/app-scripts
100644 → 100755
Empty file.
Empty file modified packages/scripts/bin/app-workflow
100644 → 100755
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@
<!-- "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></ion-ripple-effect>
<img *ngIf="params.image" src="{{ params.image | plhAsset }}" />
<div *ngIf="_row.value" [class]="'button-text ' + params.textAlign">
{{ _row.value }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ ion-button[data-variant~="card"] {
}
}

// set the speed of the ripple effect to ensure that it is consistent across all buttons
.ion-ripple-effect {
--ion-ripple-duration: 500ms;
}

.button-container[data-variant~="card-portrait"] {
background-color: white;
color: var(--ion-color-primary);
Expand All @@ -92,6 +97,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 ripple-parent 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 Down
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;

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