Skip to content

Commit

Permalink
fix: [code-1991]: fix header message and padding (harness#2122)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjlee01 authored and Harness committed Jun 18, 2024
1 parent 11e5c26 commit 98bac50
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,3 +245,9 @@
.gridContainer::after {
grid-column: 2 !important;
}

.successIcon {
:global(.bp3-icon) {
padding-right: unset !important;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ export declare const sectionTitle: string
export declare const showMore: string
export declare const statusCircleContainer: string
export declare const statusIcon: string
export declare const successIcon: string
export declare const textSize: string
export declare const timeoutIcon: string
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const ChangesSection = (props: ChangesSectionProps) => {
statusIcon = 'warning-icon'
} else if (
(codeOwnerPendingEntries && codeOwnerPendingEntries?.length > 0 && reqCodeOwnerLatestApproval) ||
(latestCodeOwnerApprovalArr?.length <= minReqLatestApproval && reqCodeOwnerLatestApproval)
(latestCodeOwnerApprovalArr?.length < minReqLatestApproval && reqCodeOwnerLatestApproval)
) {
title = getString('changesSection.pendingAppFromCodeOwners')
statusMessage = getString('changesSection.pendingLatestApprovalCodeOwners')
Expand Down Expand Up @@ -474,6 +474,7 @@ const ChangesSection = (props: ChangesSectionProps) => {
{latestApprovalArr && minReqLatestApproval <= latestApprovalArr?.length ? (
<Text
icon="tick-circle"
className={css.successIcon}
iconProps={{ size: 16, color: Color.GREEN_700 }}
padding={{
left: 'large'
Expand All @@ -499,7 +500,7 @@ const ChangesSection = (props: ChangesSectionProps) => {
<Text
className={css.sectionSubheader}
padding={{
left: 'large'
left: 'medium'
}}>
{
stringSubstitute(getString('codeOwner.pendingLatestApprovals'), {
Expand Down

0 comments on commit 98bac50

Please sign in to comment.