Skip to content

Commit e2c09c7

Browse files
Changed divs to buttons, moved click events, alter css
1 parent e776621 commit e2c09c7

2 files changed

Lines changed: 18 additions & 10 deletions

File tree

app/frontend/src/components/forms/submission/NotesPanel.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,13 @@ defineExpose({ addNote, getNotes, loading, newNote, notes, showNoteField });
8686
<div
8787
class="d-flex flex-md-row justify-space-between"
8888
data-test="showNotesPanel"
89-
@click="showNotesContent = !showNotesContent"
9089
>
9190
<div cols="12" sm="6">
92-
<h2 class="note-heading" :lang="locale">
91+
<button
92+
class="note-heading"
93+
:lang="locale"
94+
@click="showNotesContent = !showNotesContent"
95+
>
9396
{{ $t('trans.notesPanel.notes') }}
9497
<v-icon>{{
9598
showNotesContent
@@ -98,7 +101,7 @@ defineExpose({ addNote, getNotes, loading, newNote, notes, showNoteField });
98101
? 'mdi:mdi-chevron-left'
99102
: 'mdi:mdi-chevron-right'
100103
}}</v-icon>
101-
</h2>
104+
</button>
102105
</div>
103106

104107
<div :class="[{ 'text-left': isRTL }, 'd-flex', 'align-items-center']">
@@ -197,6 +200,8 @@ defineExpose({ addNote, getNotes, loading, newNote, notes, showNoteField });
197200
.note-heading {
198201
color: #003366;
199202
margin-bottom: 0;
203+
font-size: 27px;
204+
font-weight: 700;
200205
.v-icon {
201206
transition: transform 0.3s ease;
202207
}

app/frontend/src/components/forms/submission/StatusPanel.vue

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -376,12 +376,13 @@ defineExpose({
376376

377377
<template>
378378
<div :class="{ 'dir-rtl': isRTL }">
379-
<div
380-
class="flex-container"
381-
data-test="showStatusPanel"
382-
@click="showStatusContent = !showStatusContent"
383-
>
384-
<h2 class="status-heading" :class="{ 'dir-rtl': isRTL }" :lang="locale">
379+
<div class="flex-container" data-test="showStatusPanel">
380+
<button
381+
class="status-heading"
382+
:class="{ 'dir-rtl': isRTL }"
383+
:lang="locale"
384+
@click="showStatusContent = !showStatusContent"
385+
>
385386
{{ $t('trans.formSubmission.status') }}
386387
<v-icon>{{
387388
showStatusContent
@@ -390,7 +391,7 @@ defineExpose({
390391
? 'mdi:mdi-chevron-left'
391392
: 'mdi:mdi-chevron-right'
392393
}}</v-icon>
393-
</h2>
394+
</button>
394395
<!-- Show <p> here for screens greater than 959px -->
395396
<p class="hide-on-narrow" :lang="locale">
396397
<span :class="isRTL ? 'status-details-rtl' : 'status-details'">
@@ -665,6 +666,8 @@ defineExpose({
665666
.status-heading {
666667
color: #003366;
667668
margin-bottom: 0;
669+
font-size: 27px;
670+
font-weight: 700;
668671
.v-icon {
669672
transition: transform 0.3s ease;
670673
}

0 commit comments

Comments
 (0)