From 4cc7b9d5b56e00d9d99fadb176a15becf1ae90c9 Mon Sep 17 00:00:00 2001 From: Aurora Virmasalo <93916893+VirmasaloA@users.noreply.github.com> Date: Mon, 19 Aug 2024 12:02:32 +0300 Subject: [PATCH] CSCEXAM-1172 Add clear focus to buttons and update button styles to use bootstrap (#1143) --- .../teacher/teacher-dashboard.component.html | 8 +++++-- .../show-instructions-dialog.component.ts | 2 +- .../exam-enrolment-details.component.html | 8 ++----- .../exam-answers-dialog.component.html | 2 +- .../search/exam-search-result.component.ts | 4 ++-- .../assessment/auto-evaluation.component.html | 8 +++++-- .../assessment/exam-assessment.component.html | 8 ++++--- .../exam-feedback-config.component.html | 4 ++-- .../basic/basic-exam-info.component.html | 8 ++++--- .../editor/creation/new-exam.component.html | 2 +- .../exam-publication.component.html | 10 ++++----- .../publication-error-dialog.component.ts | 2 +- .../sections/exam-material.component.html | 2 +- .../editor/sections/section.component.html | 4 ++-- .../editor/sections/sections.component.html | 12 +++++------ .../header/examination-header.component.ts | 6 +++--- .../examination-toolbar.component.html | 21 ++++++++++++------- .../inspection-statement-dialog.component.ts | 2 +- .../maturity-reporting.component.html | 2 +- .../basequestion/question-body.component.html | 2 +- .../basequestion/question.component.html | 4 ++-- .../examquestion/exam-question.component.html | 2 +- .../library-transfer-dialog.component.html | 4 ++-- .../app/question/library/library.component.ts | 4 ++-- .../owners/library-owners-dialog.component.ts | 4 ++-- .../tags/library-tags-dialog.component.ts | 2 +- .../picker/question-picker.component.ts | 2 +- .../assessment/assessment.component.html | 2 +- .../assessment/grading/toolbar.component.ts | 8 +++---- .../maturity/inspection-comments.component.ts | 2 +- .../assessment/maturity/toolbar.component.ts | 10 ++++----- .../categories/graded-logged.component.html | 2 +- .../listing/categories/graded.component.html | 2 +- .../categories/in-progress.component.html | 4 ++-- .../listing/dialogs/no-shows.component.html | 2 +- ui/src/app/session/dev/dev-login.component.ts | 2 +- ui/src/styles.scss | 15 ++----------- 37 files changed, 95 insertions(+), 93 deletions(-) diff --git a/ui/src/app/dashboard/staff/teacher/teacher-dashboard.component.html b/ui/src/app/dashboard/staff/teacher/teacher-dashboard.component.html index 9df6f9aef..04e81876f 100644 --- a/ui/src/app/dashboard/staff/teacher/teacher-dashboard.component.html +++ b/ui/src/app/dashboard/staff/teacher/teacher-dashboard.component.html @@ -2,10 +2,14 @@
- -
diff --git a/ui/src/app/enrolment/active/dialogs/show-instructions-dialog.component.ts b/ui/src/app/enrolment/active/dialogs/show-instructions-dialog.component.ts index 39fbbcd6a..b2c479a80 100644 --- a/ui/src/app/enrolment/active/dialogs/show-instructions-dialog.component.ts +++ b/ui/src/app/enrolment/active/dialogs/show-instructions-dialog.component.ts @@ -30,7 +30,7 @@ import { MathJaxDirective } from 'src/app/shared/math/math-jax.directive'; diff --git a/ui/src/app/enrolment/exams/exam-enrolment-details.component.html b/ui/src/app/enrolment/exams/exam-enrolment-details.component.html index 457f363dd..c6e785de5 100644 --- a/ui/src/app/enrolment/exams/exam-enrolment-details.component.html +++ b/ui/src/app/enrolment/exams/exam-enrolment-details.component.html @@ -21,11 +21,7 @@

{{ exam.name }}

@if (!exam.alreadyEnrolled && !exam.noTrialsLeft) {
- @if (getExpiration()) { @@ -112,7 +108,7 @@

{{ exam.name }}

@if (!exam.reservationMade && exam.alreadyEnrolled && !exam.noTrialsLeft) {
-
diff --git a/ui/src/app/enrolment/finished/exam-answers-dialog.component.html b/ui/src/app/enrolment/finished/exam-answers-dialog.component.html index ea39b044c..dd89e9e49 100644 --- a/ui/src/app/enrolment/finished/exam-answers-dialog.component.html +++ b/ui/src/app/enrolment/finished/exam-answers-dialog.component.html @@ -210,7 +210,7 @@

{{ 'i18n_exam_review_settings' | translate }}

} diff --git a/ui/src/app/enrolment/search/exam-search-result.component.ts b/ui/src/app/enrolment/search/exam-search-result.component.ts index f46fdc264..1a4186c21 100644 --- a/ui/src/app/enrolment/search/exam-search-result.component.ts +++ b/ui/src/app/enrolment/search/exam-search-result.component.ts @@ -87,12 +87,12 @@ import { TeacherListComponent } from 'src/app/shared/user/teacher-list.component
@if (!exam.alreadyEnrolled) { - } @if (exam.alreadyEnrolled && !exam.reservationMade) { - } diff --git a/ui/src/app/exam/editor/assessment/auto-evaluation.component.html b/ui/src/app/exam/editor/assessment/auto-evaluation.component.html index eb65b6208..d1b89c6f3 100644 --- a/ui/src/app/exam/editor/assessment/auto-evaluation.component.html +++ b/ui/src/app/exam/editor/assessment/auto-evaluation.component.html @@ -39,13 +39,17 @@
@if (!autoevaluation.enabled) { - } @if (autoevaluation.enabled) { +
- +
-
diff --git a/ui/src/app/exam/editor/assessment/exam-feedback-config.component.html b/ui/src/app/exam/editor/assessment/exam-feedback-config.component.html index 6dac90751..eec038608 100644 --- a/ui/src/app/exam/editor/assessment/exam-feedback-config.component.html +++ b/ui/src/app/exam/editor/assessment/exam-feedback-config.component.html @@ -37,7 +37,7 @@
@if (!examFeedbackConfig.enabled) {
@if (showDelete()) { - + }
- +
diff --git a/ui/src/app/exam/editor/creation/new-exam.component.html b/ui/src/app/exam/editor/creation/new-exam.component.html index a485d22b3..f24d87dc1 100644 --- a/ui/src/app/exam/editor/creation/new-exam.component.html +++ b/ui/src/app/exam/editor/creation/new-exam.component.html @@ -76,7 +76,7 @@
@if (homeExaminationSupported || sebExaminationSupported) {
-
diff --git a/ui/src/app/exam/editor/publication/exam-publication.component.html b/ui/src/app/exam/editor/publication/exam-publication.component.html index 1d7d24057..f847efb9e 100644 --- a/ui/src/app/exam/editor/publication/exam-publication.component.html +++ b/ui/src/app/exam/editor/publication/exam-publication.component.html @@ -321,12 +321,12 @@
-
-
- - +
@@ -343,7 +343,7 @@
-
diff --git a/ui/src/app/exam/editor/publication/publication-error-dialog.component.ts b/ui/src/app/exam/editor/publication/publication-error-dialog.component.ts index 4fa152d6c..e621c6f4c 100644 --- a/ui/src/app/exam/editor/publication/publication-error-dialog.component.ts +++ b/ui/src/app/exam/editor/publication/publication-error-dialog.component.ts @@ -32,7 +32,7 @@ import { TranslateModule } from '@ngx-translate/core'; }
diff --git a/ui/src/app/exam/editor/sections/exam-material.component.html b/ui/src/app/exam/editor/sections/exam-material.component.html index 6ca52e4e9..db457a275 100644 --- a/ui/src/app/exam/editor/sections/exam-material.component.html +++ b/ui/src/app/exam/editor/sections/exam-material.component.html @@ -92,7 +92,7 @@

diff --git a/ui/src/app/exam/editor/sections/section.component.html b/ui/src/app/exam/editor/sections/section.component.html index 60a55124e..143a69e3a 100644 --- a/ui/src/app/exam/editor/sections/section.component.html +++ b/ui/src/app/exam/editor/sections/section.component.html @@ -244,11 +244,11 @@
@if (!collaborative) { - } -
diff --git a/ui/src/app/exam/editor/sections/sections.component.html b/ui/src/app/exam/editor/sections/sections.component.html index 6f2706f91..22540492f 100644 --- a/ui/src/app/exam/editor/sections/sections.component.html +++ b/ui/src/app/exam/editor/sections/sections.component.html @@ -55,25 +55,25 @@

{{ calculateExamMaxScore() }}

-
-
-
@if (showDelete()) { - } @@ -83,13 +83,13 @@

{{ calculateExamMaxScore() }}

-
-
diff --git a/ui/src/app/examination/header/examination-header.component.ts b/ui/src/app/examination/header/examination-header.component.ts index 90046b739..cbb8b69a5 100644 --- a/ui/src/app/examination/header/examination-header.component.ts +++ b/ui/src/app/examination/header/examination-header.component.ts @@ -35,9 +35,9 @@ import { CourseCodeComponent } from 'src/app/shared/miscellaneous/course-code.co }
- - - + + +
@if (!isPreview) { diff --git a/ui/src/app/examination/navigation/examination-toolbar.component.html b/ui/src/app/examination/navigation/examination-toolbar.component.html index c216fe2f4..c3154e1f3 100644 --- a/ui/src/app/examination/navigation/examination-toolbar.component.html +++ b/ui/src/app/examination/navigation/examination-toolbar.component.html @@ -20,7 +20,7 @@
- @@ -33,7 +33,7 @@
} @else { - @@ -123,7 +123,12 @@
- @@ -135,7 +140,7 @@
-
@@ -144,7 +149,7 @@
- diff --git a/ui/src/app/maturity/dialogs/inspection-statement-dialog.component.ts b/ui/src/app/maturity/dialogs/inspection-statement-dialog.component.ts index 59c1bc1e6..e6f1f059f 100644 --- a/ui/src/app/maturity/dialogs/inspection-statement-dialog.component.ts +++ b/ui/src/app/maturity/dialogs/inspection-statement-dialog.component.ts @@ -31,7 +31,7 @@ import { TranslateModule } from '@ngx-translate/core';
diff --git a/ui/src/app/maturity/reporting/maturity-reporting.component.html b/ui/src/app/maturity/reporting/maturity-reporting.component.html index 76aa7f673..060e2d050 100644 --- a/ui/src/app/maturity/reporting/maturity-reporting.component.html +++ b/ui/src/app/maturity/reporting/maturity-reporting.component.html @@ -3,7 +3,7 @@ {{ month | date: 'MM/yyyy' }}
-
diff --git a/ui/src/app/question/basequestion/question-body.component.html b/ui/src/app/question/basequestion/question-body.component.html index c1a8ee5d3..5f42fc00d 100644 --- a/ui/src/app/question/basequestion/question-body.component.html +++ b/ui/src/app/question/basequestion/question-body.component.html @@ -359,7 +359,7 @@ {{ 'i18n_shared_question_property_info' | translate }}
} - + @if (question.attachment && !question.attachment?.removed) {
@if (hasUploadedAttachment()) { diff --git a/ui/src/app/question/basequestion/question.component.html b/ui/src/app/question/basequestion/question.component.html index e6a8469ff..0c0d643d7 100644 --- a/ui/src/app/question/basequestion/question.component.html +++ b/ui/src/app/question/basequestion/question.component.html @@ -36,12 +36,12 @@ " (click)="saveQuestion()" type="submit" - class="xm-ok-button" + class="btn btn-success" > {{ 'i18n_save' | translate }} -
-
diff --git a/ui/src/app/session/dev/dev-login.component.ts b/ui/src/app/session/dev/dev-login.component.ts index fa0907738..9f4c8d19b 100644 --- a/ui/src/app/session/dev/dev-login.component.ts +++ b/ui/src/app/session/dev/dev-login.component.ts @@ -54,7 +54,7 @@ import { PageHeaderComponent } from 'src/app/shared/components/page-header.compo />
- diff --git a/ui/src/styles.scss b/ui/src/styles.scss index 4e64a62c3..f701256c2 100644 --- a/ui/src/styles.scss +++ b/ui/src/styles.scss @@ -132,18 +132,7 @@ form .exclude { color: $color2; } } -.xm-ok-button { - @include xm-button(#2c7639, #25622f, white, #25622f); -} -.xm-cancel-button { - @include xm-button(#808080, #6b6b6b, white, #6b6b6b); -} -.xm-neutral-button { - @include xm-button(white, #979797, #555555, #7f7f7f); -} -.xm-warning-button { - @include xm-button(white, red, red, red); -} + /* Standard bordered box */ .xm-bordered-area { border: 1px solid #c3c3c3; @@ -212,7 +201,7 @@ form .exclude { left: auto; z-index: 999; } -.important-clear-focus:focus { +.important-clear-focus:focus, .btn:focus{ box-shadow: 0px 0px 0px 1.5px rgb(255, 255, 255), 0px 0px 0px 4px rgb(68, 120, 247) !important;