Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions ui/src/components/Card/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,31 +64,23 @@
border: 1px solid $color-brand-secondary-lightest;
border-radius: 8px;
font-size: $size-font-large;
color: $color-black-2121;
color: $color-font-base;
padding: 4px 8px;
text-transform: capitalize;
svg {
margin-right: 5px;
}
&.draft {
border-color: $color-brand-draft-base;
background-color: $color-brand-draft-light;
svg {
stroke: $color-brand-draft-base;
fill: none;
}
background-color: $color-base-white-10;
}
&.completed {
background-color: $color-brand-success-light;
border-color: $color-brand-success-base;
}
&.failed {
background-color: $color-brand-fail-light;
border-color: $color-brand-fail-base;
}
&.pending {
background-color: $color-brand-attention-light;
border-color: $color-brand-attention-base;
}
}
.ProjectCard__stats-Title {
Expand Down
14 changes: 7 additions & 7 deletions ui/src/components/Card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ const CardList = ({ project }: ProjectType) => {
};
const iconMapping: { [key: string]: string } = {
'0': 'Information',
'1': 'WarningBold',
'2': 'WarningBold',
'3': 'WarningBold',
'4': 'WarningBold',
'5': 'CheckCircle',
'6': 'CloseBorder',
'1': 'Warning',
'2': 'Warning',
'3': 'Warning',
'4': 'Warning',
'5': 'CheckCircleDark',
'6': 'Close',
};
const statusClassMapping: { [key: string]: string } = {
'0': 'draft',
Expand Down Expand Up @@ -75,7 +75,7 @@ const CardList = ({ project }: ProjectType) => {
<div className="ProjectCard__unit">
<span className="ProjectCard__stats-Title">Project Status</span>
<div className={`ProjectCard__stats-category ${statusClass}`}>
{icon && <Icon size="small" icon={icon} version="v2" />}
{icon && <Icon size="mini" icon={icon} version="v2" />}
{statusText}
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions ui/src/components/MainHeader/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
.organisationWrapper:focus {
box-shadow: 0 0 1px $color-brand-primary-base, 0 0 0 4px #bbb4f4;
}
.Dropdown-wrapper {
padding: 0 18px;
}
.Dropdown__header__value {
overflow: visible;
line-height: 1.2;
Expand Down