From 0ea7a654a19b3037229902fede0c1ba7e25f5580 Mon Sep 17 00:00:00 2001 From: AleksanderSklorz <115619721+AleksanderSklorz@users.noreply.github.com> Date: Fri, 17 May 2024 12:19:17 +0200 Subject: [PATCH] [ACS-7768] unify inputs and selects across the app (#9687) * Changed ng version before material migration * migration for material' * Fixed most of unit tests failing * [affected:*][ci:force] Fixing rebase * [affected:*][ci:force] attempt to fix mat-selectors importing * [affected:*][ci:force] Fixing the styles - check * AAE-21392 Fix dropdown form widget style (#9605) * ACS-7768 Applied new styles for inputs * ACS-7768 Align icon * ACS-7768 Input colors based on input state * ACS-7768 Corrected spaces * ACS-7768 Styles for selectboxes * ACS-7768 Fixed label jumping on hovering * ACS-7768 Style inputs for add permission panel, user role column and comments, styles for inputs without label * ACS-7768 Style inputs in search filters * ACS-7768 Set appearance for inputs globally to outline * ACS-7768 Style inputs for share dialog and login page * ACS-7768 Style inputs in properties panel * ACS-7768 Fixed white background when disabled field * ACS-7768 Moved setting outline appearance for inputs to ACA, fix issue for inputs in permission container * Revert "[affected:*][ci:force] Fixing the styles - check" This reverts commit 80d971f7abbaf3fdd66f6731e6a84ffe23900c56. * Revert "[affected:*][ci:force] attempt to fix mat-selectors importing" This reverts commit 821d9e1864b48bb2723b51347e133346cc311e5d. * Revert "[affected:*][ci:force] Fixing rebase" This reverts commit 378c6c2000fe1319b2043ca3e4652e12737e30d8. * Revert "Fixed most of unit tests failing" This reverts commit 44948e0a2888f3f62c93d5ee439eeccf849cf9b2. * ACS-7768 Reverted unwanted changes --------- Co-authored-by: Vito Albano Co-authored-by: Diogo Bastos <50139916+DiogoABastos@users.noreply.github.com> --- .../categories-management.component.html | 6 +- .../categories-management.component.scss | 12 -- .../content-metadata.component.scss | 25 --- ...content-node-selector-panel.component.html | 1 - .../content-node-share.dialog.html | 8 +- .../content-node-share.dialog.scss | 46 +++--- .../src/lib/dialogs/folder.dialog.html | 10 +- .../lib/dialogs/library/library.dialog.html | 6 +- lib/content-services/src/lib/i18n/en.json | 5 +- .../src/lib/material.module.ts | 3 +- .../add-permission-panel.component.html | 4 +- .../permission-container.component.scss | 4 + .../user-role-column.component.ts | 5 - ...rch-chip-autocomplete-input.component.html | 4 +- ...rch-chip-autocomplete-input.component.scss | 22 +-- .../search-date-range.component.html | 17 +- .../search-date-range.component.scss | 21 +-- .../search-widget-chip.component.ts | 23 ++- .../search-input/search-input.component.html | 2 +- .../search-logical-filter.component.html | 10 +- .../search-logical-filter.component.scss | 10 -- .../search-properties.component.html | 25 +-- .../search-properties.component.scss | 111 +------------ .../search-text/search-text.component.html | 2 +- .../search-text/search-text.component.scss | 30 +--- .../sites-dropdown.component.html | 2 +- .../tags-creator/tags-creator.component.html | 7 +- .../tags-creator/tags-creator.component.scss | 8 +- .../card-view-dateitem.component.html | 57 ++++--- .../card-view-dateitem.component.scss | 49 +++--- .../card-view-selectitem.component.html | 63 ++++--- .../card-view-selectitem.component.scss | 23 ++- .../card-view-textitem.component.html | 1 - .../card-view-textitem.component.scss | 13 +- .../card-view/card-view.component.scss | 70 -------- .../src/lib/comments/comments.component.scss | 1 + .../components/login/login.component.scss | 29 +--- .../src/lib/styles/_components-variables.scss | 7 + lib/core/src/lib/styles/_mat-selectors.scss | 11 ++ .../src/lib/styles/_reference-variables.scss | 6 + lib/core/src/lib/styles/_typography.scss | 24 +-- lib/core/src/lib/styles/material.theme.scss | 155 ++++++++++++++++++ 42 files changed, 425 insertions(+), 513 deletions(-) diff --git a/lib/content-services/src/lib/category/categories-management/categories-management.component.html b/lib/content-services/src/lib/category/categories-management/categories-management.component.html index 1f67b7bccc8..42351c7b430 100644 --- a/lib/content-services/src/lib/category/categories-management/categories-management.component.html +++ b/lib/content-services/src/lib/category/categories-management/categories-management.component.html @@ -1,15 +1,15 @@
-
+ + {{ 'CATEGORIES_MANAGEMENT.CATEGORIES_SEARCH_PLACEHOLDER' | translate }} {{ categoryNameErrorMessageKey | translate }} -
+
diff --git a/lib/content-services/src/lib/content-node-share/content-node-share.dialog.html b/lib/content-services/src/lib/content-node-share/content-node-share.dialog.html index 35775a2787f..f9373d276b0 100644 --- a/lib/content-services/src/lib/content-node-share/content-node-share.dialog.html +++ b/lib/content-services/src/lib/content-node-share/content-node-share.dialog.html @@ -31,13 +31,13 @@ [style.display]="isExpiryDateToggleChecked ? 'block' : 'none'" data-automation-id="adf-slide-toggle-checked" class="adf-share-link__date-time-container"> - + {{ 'SHARE.EXPIRATION-PLACEHOLDER' | translate }} + class="adf-share-link__icon"> + {{ 'SHARE.PUBLIC-LINK' | translate }} diff --git a/lib/content-services/src/lib/content-node-share/content-node-share.dialog.scss b/lib/content-services/src/lib/content-node-share/content-node-share.dialog.scss index 1e755c46a65..1b98fe43886 100644 --- a/lib/content-services/src/lib/content-node-share/content-node-share.dialog.scss +++ b/lib/content-services/src/lib/content-node-share/content-node-share.dialog.scss @@ -34,15 +34,6 @@ &__form { padding-top: 8px; - - #{$mat-form-field-infix}:has(.adf-share-link__input) { - border-top: 0.9375em solid transparent; - height: 16px; - } - - &--field { - padding-bottom: 16px; - } } &__public-content { @@ -64,12 +55,12 @@ margin: 8px 0; &-sharable { - margin-bottom: 0; + margin-bottom: 14px; } } &--sharable-container { - margin-bottom: 0; + margin-bottom: 14px; } &--header { @@ -116,23 +107,30 @@ font-size: 22px; } - &__calender-icon { - top: 12px; - position: relative; - right: -6px; - - svg { - height: 18px; - width: 18px; - } - } - &__date-time-container { - padding-bottom: 20px; + padding-bottom: 2px; } &__border-color { - border: 1px solid var(--theme-warn-color-a700); + &.adf-full-width { + &#{$mat-form-field} { + &#{$mat-form-field-label-always-float} { + &#{$mat-form-field-appearance-outline} { + #{$mat-text-field-outlined}, #{$mat-text-field-outlined}:hover { + #{$mat-notched-outline-leading}, #{$mat-notched-outline-trailing}, #{$mat-notched-outline-notch} { + border-color: var(--theme-warn-color-a700); + border-width: 2px; + } + + #{$mat-notched-outline-notch} { + border-left: none; + border-left-width: 0; + } + } + } + } + } + } } } diff --git a/lib/content-services/src/lib/dialogs/folder.dialog.html b/lib/content-services/src/lib/dialogs/folder.dialog.html index 943cf924af5..7a8d44cb3ae 100644 --- a/lib/content-services/src/lib/dialogs/folder.dialog.html +++ b/lib/content-services/src/lib/dialogs/folder.dialog.html @@ -4,7 +4,7 @@

- + {{ 'CORE.FOLDER_DIALOG.FOLDER_NAME.LABEL' | translate }} - + {{ 'CORE.FOLDER_DIALOG.FOLDER_NAME.ERRORS.REQUIRED' | translate }} @@ -23,10 +23,10 @@

{{ form.controls['name'].errors?.message | translate }} - + - + {{ 'CORE.FOLDER_DIALOG.FOLDER_TITLE.LABEL' | translate }} - + {{ 'CORE.FOLDER_DIALOG.FOLDER_DESCRIPTION.LABEL' | translate }}