-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #311 from bcgov/feature/statusChips
Add status chip to tables
- Loading branch information
Showing
7 changed files
with
54 additions
and
47 deletions.
There are no files selected for viewing
55 changes: 21 additions & 34 deletions
55
services/tenant-ui/frontend/src/assets/tenantuiComponents.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,43 @@ | ||
.status-chip { | ||
background-color: $tenant-ui-status-default-background; | ||
color: $tenant-ui-status-default-color; | ||
border-radius: 5px; | ||
padding: 0.25rem 1rem 0.25rem 1rem; | ||
font-weight: bolder; | ||
background-color: $tenant-ui-status-default-background; | ||
color: $tenant-ui-status-default-color; | ||
border-radius: 5px; | ||
padding: 0.25rem 1rem 0.25rem 1rem; | ||
font-weight: bolder; | ||
text-align: center; | ||
> span.text { | ||
min-width: 80px; | ||
text-align: center; | ||
> span.text { | ||
min-width: 80px; | ||
text-align: center | ||
} | ||
} | ||
|
||
/* green */ | ||
.status-chip.active { | ||
&.active , | ||
&.accepted, | ||
&.verified { | ||
background-color: $tenant-ui-status-green-background; | ||
color: $tenant-ui-status-green-color; | ||
} | ||
|
||
.status-chip.accepted { | ||
background-color: $tenant-ui-status-green-background; | ||
color: $tenant-ui-status-green-color; | ||
} | ||
|
||
.status-chip.verified { | ||
background-color: $tenant-ui-status-green-background; | ||
color: $tenant-ui-status-green-color; | ||
} | ||
|
||
/* amber */ | ||
.status-chip.pending { | ||
&.pending { | ||
background-color: $tenant-ui-status-amber-background; | ||
color: $tenant-ui-status-amber-color; | ||
} | ||
|
||
/* red */ | ||
.status-chip.error { | ||
&.error, | ||
&.rejected, | ||
&.offer-not-accepted { | ||
background-color: $tenant-ui-status-red-background; | ||
color: $tenant-ui-status-red-color; | ||
} | ||
|
||
.status-chip.rejected { | ||
background-color: $tenant-ui-status-red-background; | ||
color: $tenant-ui-status-red-color; | ||
} | ||
|
||
/* blue */ | ||
.status-chip.in-progress { | ||
background-color: $tenant-ui-status-blue-background; | ||
color: $tenant-ui-status-blue-color; | ||
} | ||
|
||
.status-chip.request-sent { | ||
&.in-progress, | ||
&.request-sent, | ||
&.offer-sent, | ||
&.offer-received { | ||
background-color: $tenant-ui-status-blue-background; | ||
color: $tenant-ui-status-blue-color; | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
services/tenant-ui/frontend/src/components/common/StatusChip.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters