Skip to content

Commit

Permalink
Merge pull request #1573 from ProcessMaker/feature/FOUR-15039
Browse files Browse the repository at this point in the history
feature/FOUR-15039: The styles of the options in Welcome Screen are not the same as in figma
  • Loading branch information
ryancooley authored Apr 18, 2024
2 parents b32f9fe + 0bd3ce5 commit 296609c
Showing 1 changed file with 78 additions and 26 deletions.
104 changes: 78 additions & 26 deletions src/components/renderer/form-list-table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,27 @@
{{ $t(title) }}
</p>
<template v-if="dataControl.dropdownShow === 'requests'">
<b-dropdown variant="outline-secondary" no-caret>
<b-dropdown
variant="outline-secondary"
right
no-caret
>
<template #button-content>
<i class="fas fa-caret-down" />
</template>
<b-dropdown-item
@click="handleDropdownSelection('requests_filter', 'by_me')"
>
{{ $t("As Requester") }}
<span class="item-text">
{{ $t("As Requester") }}
</span>
</b-dropdown-item>
<b-dropdown-item
@click="handleDropdownSelection('requests_filter', 'as_participant')"
>
{{ $t("As Participant") }}
<span class="item-text">
{{ $t("As Participant") }}
</span>
</b-dropdown-item>
</b-dropdown>
</template>
Expand All @@ -38,68 +46,92 @@
<div class="ml-auto d-flex align-items-center">
<template v-if="dataControl.dropdownShow === 'requests'">
<div class="mr-4">
<b-dropdown variant="outline-secondary" size="sm">
<b-dropdown
variant="outline-secondary"
size="sm"
>
<template #button-content>
<span class="text-capitalize">
<b-icon
v-if="showBadge"
icon="circle-fill"
class="mr-2"
:variant="badgeVariant"
/>
{{ $t(titleDropdown) }}
</span>
</template>
<b-dropdown-item
variant="success"
@click="
handleDropdownSelection('requests_dropdown', 'In Progress')
"
@click="handleDropdownSelection('requests_dropdown', 'all')"
>
<i class="fas fa-circle mr-2" />{{ $t("In Progress") }}
<span class="item-text">
{{ $t("View All") }}
</span>
</b-dropdown-item>
<b-dropdown-item
variant="primary"
@click="
handleDropdownSelection('requests_dropdown', 'Completed')
"
@click="handleDropdownSelection('requests_dropdown', 'Completed')"
>
<i class="fas fa-circle mr-2" />{{ $t("Completed") }}
<span class="item-text">
<i
class="fas fa-circle mr-2 text-primary"
/>
{{ $t("Completed") }}
</span>
</b-dropdown-item>
<b-dropdown-item
@click="handleDropdownSelection('requests_dropdown', 'all')"
@click="handleDropdownSelection('requests_dropdown', 'In Progress')"
>
{{ $t("View All") }}
<span class="item-text">
<i
class="fas fa-circle mr-2 text-success"
/>
{{ $t("In Progress") }}
</span>
</b-dropdown-item>
</b-dropdown>
</div>
</template>
<template v-if="dataControl.dropdownShow === 'tasks'">
<div class="mr-4">
<b-dropdown variant="outline-secondary" size="sm">
<b-dropdown
variant="outline-secondary"
size="sm"
>
<template #button-content>
<span class="text-capitalize">
<b-icon
v-if="showBadge"
icon="circle-fill"
class="mr-2"
:variant="badgeVariant"
/>
{{ $t(titleDropdown) }}
</span>
</template>
<b-dropdown-item
variant="warning"
@click="handleDropdownSelection('tasks', 'In Progress')"
>
<i class="fas fa-circle mr-2" />{{ $t("In Progress") }}
<b-dropdown-item @click="handleDropdownSelection('tasks', 'all')">
<span class="item-text">
{{ $t("View All") }}
</span>
</b-dropdown-item>
<b-dropdown-item
variant="danger"
@click="handleDropdownSelection('tasks', 'Overdue')"
>
<i class="fas fa-circle mr-2" />{{ $t("Overdue") }}
<span class="item-text">
<i
class="fas fa-circle mr-2 text-danger"
/>
{{ $t("Overdue") }}
</span>
</b-dropdown-item>
<b-dropdown-item @click="handleDropdownSelection('tasks', 'all')">
{{ $t("View All") }}
<b-dropdown-item
@click="handleDropdownSelection('tasks', 'In Progress')"
>
<span class="item-text">
<i
class="fas fa-circle mr-2 text-warning"
/>
{{ $t("In Progress") }}
</span>
</b-dropdown-item>
</b-dropdown>
</div>
Expand Down Expand Up @@ -328,4 +360,24 @@ export default {
.btn-outline-secondary {
border: none;
}
.item-text {
color: #42526E;
font-family: 'Open Sans', sans-serif;
font-size: 14px;
font-weight: 400;
line-height: 21px;
letter-spacing: -0.02em;
text-align: left;
}
.dropdown-menu {
padding: 10px;
width: 211px;
box-shadow: 0px 10px 20px 4px #00000021;
}
.dropdown-item {
padding: 10px 8px;
}
</style>

0 comments on commit 296609c

Please sign in to comment.