Skip to content

Commit 2683cc0

Browse files
committed
fix: theme for override theme
1 parent 2286a31 commit 2683cc0

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

src/components/workflowEditor/workflowEditor.tsx

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import { Component, createContext } from 'react'
1818
import { Route, Switch, withRouter, generatePath } from 'react-router-dom'
1919
import {
2020
showError,
21-
DOCUMENTATION,
2221
Progressing,
2322
ErrorScreenManager,
2423
ConditionalWrap,
@@ -39,6 +38,11 @@ import {
3938
deleteWorkflow,
4039
InfoBlock,
4140
DocLink,
41+
Button,
42+
Icon,
43+
ComponentSizeType,
44+
ButtonVariantType,
45+
ButtonStyleType,
4246
} from '@devtron-labs/devtron-fe-common-lib'
4347
import Tippy from '@tippyjs/react'
4448
import { PipelineContext, WorkflowEditProps, WorkflowEditState } from './types'
@@ -908,11 +912,17 @@ class WorkflowEdit extends Component<WorkflowEditProps, WorkflowEditState> {
908912
<InfoBlock
909913
variant="help"
910914
description={
911-
<div className="flex fs-13 fw-4 lh-20 cn-0">
915+
<div className="flex dc__gap-8 fs-13 fw-4 lh-20 cn-9">
912916
Open a build pipeline to override
913-
<CloseIcon
914-
className="icon-dim-12 fcn-0 ml-8 cursor"
917+
<Button
918+
dataTestId="close-info-block"
919+
icon={<Icon name="ic-close-small" color={null} />}
920+
ariaLabel="close-info-button"
921+
showAriaLabelInTippy={false}
915922
onClick={this.removeTakeMeThereClickedItem}
923+
size={ComponentSizeType.xxs}
924+
variant={ButtonVariantType.borderLess}
925+
style={ButtonStyleType.negativeGrey}
916926
/>
917927
</div>
918928
}
@@ -953,11 +963,7 @@ class WorkflowEdit extends Component<WorkflowEditProps, WorkflowEditState> {
953963
? WORKFLOW_EDITOR_HEADER_TIPPY.INFO_TEXT.JOB_VIEW
954964
: WORKFLOW_EDITOR_HEADER_TIPPY.INFO_TEXT.DEFAULT
955965
}
956-
documentationLink={
957-
this.props.isJobView
958-
? "JOB_WORKFLOW_EDITOR"
959-
: "APP_CREATE_WORKFLOW"
960-
}
966+
documentationLink={this.props.isJobView ? 'JOB_WORKFLOW_EDITOR' : 'APP_CREATE_WORKFLOW'}
961967
documentationLinkText={WORKFLOW_EDITOR_HEADER_TIPPY.DOCUMENTATION_LINK_TEXT}
962968
placement="right"
963969
/>

0 commit comments

Comments
 (0)