Skip to content

Commit

Permalink
AAE-23704 Fixed outcome buttons text alignment (#9933)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-2019 authored and VitoAlbano committed Jul 9, 2024
1 parent fe2959d commit ca648ab
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 27 deletions.
10 changes: 2 additions & 8 deletions lib/core/src/lib/form/components/form-renderer.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,9 @@
white-space: nowrap;
}

/* stylelint-disable declaration-no-important */
&-form-mat-card-actions {
float: right;
padding-bottom: 25px !important;
padding-right: 25px !important;
padding-bottom: 25px;
padding-right: 25px;

& #{$mat-button} {
height: 36px;
Expand All @@ -227,10 +225,6 @@

& #{$mat-button-label} {
min-width: 58px;
height: 20px;
opacity: 0.54;
font-size: var(--theme-body-2-font-size);
font-weight: bold;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ <h4>
>
</adf-form-renderer>
</mat-card-content>
<mat-card-actions *ngIf="form.hasOutcomes()" class="adf-form-mat-card-actions">
<mat-card-actions *ngIf="form.hasOutcomes()" class="adf-form-mat-card-actions" align="end">
<ng-content select="adf-cloud-form-custom-outcomes"></ng-content>
<ng-container *ngFor="let outcome of form.outcomes">
<button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,10 @@
flex-direction: column;
height: 100%;

/* TODO(mdc-migration): The following rule targets internal classes of card that may no longer apply for the MDC version. */
mat-card-content {
#{$mat-card-content} {
height: 100%;
overflow: hidden auto;
}

/* TODO(mdc-migration): The following rule targets internal classes of card that may no longer apply for the MDC version. */
mat-card-actions {
display: flex;
justify-content: flex-end;
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h4>
[subtitle]="'ADF_CLOUD_TASK_FORM.EMPTY_FORM.SUBTITLE'">
</adf-empty-content>
</mat-card-content>
<mat-card-actions class="adf-task-form-actions">
<mat-card-actions class="adf-task-form-actions" align="end">
<ng-template [ngTemplateOutlet]="taskFormCloudButtons">
</ng-template>
<button mat-button *ngIf="canCompleteTask()" adf-cloud-complete-task [appName]="appName"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
@import 'styles/mat-selectors';

.adf-task-form-cloud-container {
.adf-task-form {
&-container {
overflow: hidden;

.adf-task-form-actions:has(button) {
float: right;
padding-bottom: 25px;
padding-right: 25px;

& .adf-task-form-actions-button {
.adf-task-form-actions-button {
height: 36px;
border-radius: 5px;
}

#{$mat-button} {
height: 36px;
border-radius: 5px;
width: auto;
padding: 0 16px;
margin: 0 8px;
white-space: nowrap;
}

span {
width: 58px;
height: 20px;
opacity: 0.54;
font-size: var(--theme-body-2-font-size);
font-weight: bold;
}
#{$mat-button-label} {
min-width: 58px;
}
}
}
Expand Down

0 comments on commit ca648ab

Please sign in to comment.