Skip to content

Commit

Permalink
[ACS-7452] - Small screen notification banner
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekpluta committed Apr 5, 2024
1 parent dbcb076 commit 2303722
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 60 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
adf-about {
/* custom ADF About Component Theme */

.mdc-data-table__header-cell,
.mat-header-cell {
color: var(--adf-theme-foreground-text-color-054);
font-size: 12px;
font-weight: 500;
}

background-color: var(--theme-about-panel-background-color);
overflow: auto;

Expand Down
8 changes: 4 additions & 4 deletions projects/aca-content/src/lib/ui/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ mat-icon {
color: var(--theme-secondary-text);
}

.mat-mdc-button > .mat-icon {
padding: 0;
}

mat-slide-toggle {
.mdc-switch__icons {
display: none;
Expand All @@ -31,10 +35,6 @@ mat-slide-toggle {
}
}

.adf-name-location-cell-location.adf-datatable-cell-value {
color: var(--theme-secondary-text);
}

.mdc-text-field--filled:not(.mdc-text-field--disabled) {
background-color: transparent;
padding: 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
<div class="aca-mobile-application-container">
<span>{{ 'APP.DIALOGS.MOBILE_APP.OPEN_ALFRESCO_MOBILE_APP' | translate }}</span>
<button mat-button class="aca-cross-button" (click)="onCloseDialog()">
<mat-icon class="aca-cross-button-icon">close</mat-icon>
</button>
</div>
<div class="aca-open-in-app">
<div class="aca-mobile-application-container">
<span>{{ 'APP.DIALOGS.MOBILE_APP.OPEN_ALFRESCO_MOBILE_APP' | translate }}</span>
<button mat-icon-button mat-dialog-close class="aca-cross-button">
<mat-icon (click)="onCloseDialog()" class="aca-cross-button-icon">close</mat-icon>
</button>
</div>

<div class="aca-open-in-app-container">
<button mat-button (click)="openInApp()" data-automation-id="open-in-app-button" class="aca-open-in-app-container-button" cdkFocusInitial>
<span>{{ 'APP.DIALOGS.MOBILE_APP.MOBILE_APP_BUTTON_LABEL' | translate }}</span>
</button>
</div>
<div class="aca-open-in-app-button-container">
<button mat-button (click)="openInApp()"
data-automation-id="open-in-app-button"
class="aca-open-in-app-button-container" cdkFocusInitial>
<span>{{ 'APP.DIALOGS.MOBILE_APP.MOBILE_APP_BUTTON_LABEL' | translate }}</span>
</button>
</div>

<div class="aca-download-app-container" *ngIf="appStoreUrl">
<button mat-button data-automation-id="download-app-button" class="aca-download-app-container-button" (click)="downloadIosApp()">
<span>{{ 'APP.DIALOGS.MOBILE_APP.DOWNLOAD_APP_BUTTON_LABEL' | translate }}</span>
</button>
<div class="aca-download-app-container" *ngIf="appStoreUrl">
<button mat-button data-automation-id="download-app-button" class="aca-download-app-container-button" (click)="downloadIosApp()">
<span>{{ 'APP.DIALOGS.MOBILE_APP.DOWNLOAD_APP_BUTTON_LABEL' | translate }}</span>
</button>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -1,60 +1,58 @@
aca-open-in-app {
.aca-open-in-app-container {
display: flex;
place-content: center;
padding: 0;
border-radius: 8px;
background-color: var(--theme-primary-color);
color: var(--theme-about-panel-background-color);
margin-top: 12px;

&-button {
overflow-x: hidden;
font-size: 16px;
width: 100%;
.aca-open-in-app {
.aca-open-in-app-button-container {
display: flex;
place-content: center;
padding: 0;
border-radius: 8px;
background-color: var(--theme-primary-color);
height: 48px;
overflow-x: hidden;
font-size: 16px;
color: white;
font-weight: 600;

&:focus-visible {
outline: none;
border-radius: unset;
}
}
}

.aca-download-app-container {
display: flex;
place-content: center;
margin-top: 12px;
.aca-download-app-container {
display: flex;
place-content: center;
margin-top: 12px;
margin-bottom: 16px;

&-button {
background: var(--theme-dialog-background-color);
color: var(--theme-primary-color);
font-size: 14px;
&-button {
background: var(--theme-dialog-background-color);
color: var(--theme-primary-color);
font-size: 14px;
}
}
}

.aca-mobile-application-container {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
font-size: 14px;
padding: 6px 0;
}
.aca-mobile-application-container {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
font-size: 14px;
padding: 6px 0;
margin-bottom: 12px;
}

.aca-cross-button {
padding-right: 0;
.aca-cross-button {
padding-right: 0;

&:focus-visible {
outline: none;
border-radius: unset;
}
&:focus-visible {
outline: none;
border-radius: unset;
}

&-icon {
font-weight: bold;
font-size: 21px;
height: 21px;
&-icon {
font-weight: bold;
font-size: 20px;
}
}
}
}

0 comments on commit 2303722

Please sign in to comment.