From 23a46caf56e723f236b9303c0a3498117d33e850 Mon Sep 17 00:00:00 2001 From: Katarina Lejonlid Date: Tue, 17 May 2022 19:08:56 +0200 Subject: [PATCH 01/12] #333: Replaced placeholder with label according to accessibility guidelines --- frontend/src/components/QuickAdd.tsx | 2 +- frontend/src/index.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/QuickAdd.tsx b/frontend/src/components/QuickAdd.tsx index 69b38e0f..83741dce 100644 --- a/frontend/src/components/QuickAdd.tsx +++ b/frontend/src/components/QuickAdd.tsx @@ -109,6 +109,7 @@ export const QuickAdd = ({ return (

Add a new issue

+ Date: Wed, 18 May 2022 10:16:42 +0200 Subject: [PATCH 02/12] #333: Correcting aria label according to accessibility guidelines --- frontend/src/pages/Report.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/Report.tsx b/frontend/src/pages/Report.tsx index dda40d46..17618aee 100644 --- a/frontend/src/pages/Report.tsx +++ b/frontend/src/pages/Report.tsx @@ -666,7 +666,7 @@ export const Report = () => { return (
Date: Wed, 18 May 2022 12:57:14 +0200 Subject: [PATCH 03/12] #333: Correcting from code review --- frontend/src/components/QuickAdd.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/QuickAdd.tsx b/frontend/src/components/QuickAdd.tsx index 83741dce..92337d10 100644 --- a/frontend/src/components/QuickAdd.tsx +++ b/frontend/src/components/QuickAdd.tsx @@ -109,9 +109,8 @@ export const QuickAdd = ({ return (

Add a new issue

- + -
diff --git a/frontend/src/index.css b/frontend/src/index.css index 7803df50..bd94c34f 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -143,9 +143,8 @@ Other button classes are defined further down together with other classes for th .footer { z-index: 100; width: 100%; - top: calc(100vh - 120px); + bottom:0; position: fixed; - height: 120px; background-color: white; } @@ -343,7 +342,7 @@ Other button classes are defined further down together with other classes for th } .save-button { - margin: 2rem; + margin: 1rem 2rem 2rem; min-width: 10rem; padding: 1rem 1.5rem; } @@ -421,8 +420,9 @@ Other button classes are defined further down together with other classes for th /* The unsaved changes alert message box */ .unsaved-alert-p { color: hsl(26deg 91% 42%); /* Red */ - margin: 3rem 1rem 2rem; + /* margin: 3rem 1rem 2rem; */ text-align: right; + min-height: 2rem; } .comment-container { @@ -608,3 +608,9 @@ Other button classes are defined further down together with other classes for th display: flex; justify-content: center; } + +@media (max-width: 992px) { + .hidden{ + visibility: hidden; + } +} diff --git a/frontend/src/pages/Report.tsx b/frontend/src/pages/Report.tsx index ec37dbe6..36c8c40e 100644 --- a/frontend/src/pages/Report.tsx +++ b/frontend/src/pages/Report.tsx @@ -680,20 +680,20 @@ export const Report = () => {
-
+
-
+ {toastList.length > 0 && ( + + )} +
+
{showUnsavedWarning && ( -
+

⚠ You have unsaved changes

-
- )} - {toastList.length > 0 && ( - + )} -
-
+
From 4719282882cd87ae99f704f98f1b2b10bf385fdd Mon Sep 17 00:00:00 2001 From: Katarina Lejonlid Date: Fri, 20 May 2022 17:07:32 +0200 Subject: [PATCH 06/12] #333: Finaladjustment of unsaved changes text --- frontend/src/index.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/index.css b/frontend/src/index.css index bd94c34f..aa537ee1 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -420,7 +420,7 @@ Other button classes are defined further down together with other classes for th /* The unsaved changes alert message box */ .unsaved-alert-p { color: hsl(26deg 91% 42%); /* Red */ - /* margin: 3rem 1rem 2rem; */ + margin-right: 2rem; text-align: right; min-height: 2rem; } From 48f67d114c893c5a9d1b1994f6ee2e495ff0efb9 Mon Sep 17 00:00:00 2001 From: Katarina Lejonlid Date: Fri, 20 May 2022 17:49:25 +0200 Subject: [PATCH 07/12] #333: Lint checks fixes --- frontend/src/index.css | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/src/index.css b/frontend/src/index.css index 75f8dbba..c5dd62b4 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -143,7 +143,7 @@ Other button classes are defined further down together with other classes for th .footer { z-index: 100; width: 100%; - bottom:0; + bottom: 0; position: fixed; background-color: white; } @@ -350,7 +350,7 @@ Other button classes are defined further down together with other classes for th } .save-button { - margin: 1rem 2rem 2rem; + margin: 1rem 2rem 2rem; min-width: 10rem; padding: 1rem 1.5rem; } @@ -628,11 +628,10 @@ Other button classes are defined further down together with other classes for th top: 3px; right: 3px; width: 0.7rem; - } @media (max-width: 992px) { .hidden{ - visibility: hidden; + visibility: hidden; } } \ No newline at end of file From b600a0fbd0be60cb49b9bfa0026c6cc831ba0c01 Mon Sep 17 00:00:00 2001 From: Katarina Lejonlid Date: Fri, 20 May 2022 17:57:20 +0200 Subject: [PATCH 08/12] #333: Lint checks fixes --- frontend/src/index.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/index.css b/frontend/src/index.css index c5dd62b4..0d88107d 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -631,7 +631,7 @@ Other button classes are defined further down together with other classes for th } @media (max-width: 992px) { - .hidden{ - visibility: hidden; + .hidden { + visibility: hidden; } } \ No newline at end of file From 2103bf5ca381dc884e3f7dee0d67a67fb2d3eeac Mon Sep 17 00:00:00 2001 From: Katarina Lejonlid Date: Fri, 20 May 2022 18:07:11 +0200 Subject: [PATCH 09/12] #333: Lint checks end of source newline --- frontend/src/index.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/index.css b/frontend/src/index.css index 0d88107d..58f7a570 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -634,4 +634,4 @@ Other button classes are defined further down together with other classes for th .hidden { visibility: hidden; } -} \ No newline at end of file +} From 49434ce6816cff9f739685a0be50159883fe0438 Mon Sep 17 00:00:00 2001 From: Katarina Lejonlid Date: Mon, 23 May 2022 13:23:58 +0200 Subject: [PATCH 10/12] #333: More space between heading and labels --- frontend/src/components/QuickAdd.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/QuickAdd.tsx b/frontend/src/components/QuickAdd.tsx index 0ae44f2a..3475b66f 100644 --- a/frontend/src/components/QuickAdd.tsx +++ b/frontend/src/components/QuickAdd.tsx @@ -108,7 +108,7 @@ export const QuickAdd = ({ return (
-

Add a new row

+

Add a new row