From 23e8d64ace4f75e51b7f45a1e4b46d8df821b937 Mon Sep 17 00:00:00 2001 From: mchouliara Date: Tue, 24 Sep 2024 12:14:47 +0300 Subject: [PATCH] description overview refactor for accessibility, remove unused style --- .../app/ui/dashboard/dashboard.component.scss | 13 ---------- .../description-listing-item.component.scss | 2 +- .../description-overview.component.html | 24 +++++++++---------- .../description-overview.component.scss | 10 ++++---- .../overview/plan-overview.component.scss | 2 +- .../plan-authors/plan-authors.component.html | 2 +- 6 files changed, 20 insertions(+), 33 deletions(-) diff --git a/frontend/src/app/ui/dashboard/dashboard.component.scss b/frontend/src/app/ui/dashboard/dashboard.component.scss index bdd964c05..5d4d719d1 100644 --- a/frontend/src/app/ui/dashboard/dashboard.component.scss +++ b/frontend/src/app/ui/dashboard/dashboard.component.scss @@ -183,19 +183,6 @@ input[type="text"] { line-height: 2.4; } -.description-label { - width: auto; - height: 37px; - background: var(--secondary-color) 0% 0% no-repeat padding-box; - border-radius: 4px 0px; - text-align: left; - line-height: 2.8; - font-size: 0.875rem; - letter-spacing: 0px; - color: var(--dark-gray); - font-weight: 400; -} - .icon-align { display: inline-flex; vertical-align: middle; diff --git a/frontend/src/app/ui/description/listing/listing-item/description-listing-item.component.scss b/frontend/src/app/ui/description/listing/listing-item/description-listing-item.component.scss index 4b08087eb..050b9f4d0 100644 --- a/frontend/src/app/ui/description/listing/listing-item/description-listing-item.component.scss +++ b/frontend/src/app/ui/description/listing/listing-item/description-listing-item.component.scss @@ -130,7 +130,7 @@ input[type="text"] { font-size: 0.875rem; font-weight: 400; letter-spacing: 0px; - color: var(--dark-gray); + color: var(--secondary-text); } .plan-title, diff --git a/frontend/src/app/ui/description/overview/description-overview.component.html b/frontend/src/app/ui/description/overview/description-overview.component.html index 211c6e34f..c98d6308b 100644 --- a/frontend/src/app/ui/description/overview/description-overview.component.html +++ b/frontend/src/app/ui/description/overview/description-overview.component.html @@ -47,24 +47,24 @@
@if(isActive && (canEdit || canAnnotate) && isDraftDescription(description) && !isLocked){ - }@else { @if(!isPublicView){ - } }
-
-
@@ -78,7 +78,7 @@
{{ this.description.plan.label }}
-
+
launch
@@ -137,7 +137,7 @@
-
@@ -154,7 +154,7 @@
-
@@ -166,18 +166,18 @@
-
-
-

{{ 'DESCRIPTION-OVERVIEW.ACTIONS.EXPORT' | translate }}

+
+

{{ 'DESCRIPTION-OVERVIEW.ACTIONS.EXPORT' | translate }}

@@ -199,7 +199,7 @@ />
diff --git a/frontend/src/app/ui/description/overview/description-overview.component.scss b/frontend/src/app/ui/description/overview/description-overview.component.scss index 7d95aa895..088d61cd7 100644 --- a/frontend/src/app/ui/description/overview/description-overview.component.scss +++ b/frontend/src/app/ui/description/overview/description-overview.component.scss @@ -6,7 +6,7 @@ // ********ICONS******** .back-icon { - opacity: 0.4; + opacity: 0.6; } .mat-mini-fab { @@ -28,7 +28,7 @@ } .status-icon { - color: #a7a7a7; + color: var(--gray); } .check-icon { @@ -139,7 +139,7 @@ .label-txt, .label2-txt { - color: var(--gray); + color: #4b4a4a; font-weight: 400; } @@ -167,13 +167,13 @@ .description-label, .header { font-size: 1.25em; - color: var(--dark-gray); + color: #000000; } .desc-txt { width: 48.25em; font-size: 1em; - color: var(--dark-gray); + color: #4b4a4a; margin-bottom: 1.875em; } diff --git a/frontend/src/app/ui/plan/overview/plan-overview.component.scss b/frontend/src/app/ui/plan/overview/plan-overview.component.scss index 90357088b..3153badbf 100644 --- a/frontend/src/app/ui/plan/overview/plan-overview.component.scss +++ b/frontend/src/app/ui/plan/overview/plan-overview.component.scss @@ -8,7 +8,7 @@ // ********ICONS******** .back-icon { - opacity: 0.4; + opacity: 0.6; } .mat-mdc-mini-fab { diff --git a/frontend/src/app/ui/plan/plan-authors/plan-authors.component.html b/frontend/src/app/ui/plan/plan-authors/plan-authors.component.html index fa1ef6b0b..b0a9d7533 100644 --- a/frontend/src/app/ui/plan/plan-authors/plan-authors.component.html +++ b/frontend/src/app/ui/plan/plan-authors/plan-authors.component.html @@ -19,7 +19,7 @@
@if(removeUser() && planUser.role != planUserRoleEnum.Owner){ - }