Skip to content

Commit

Permalink
Merge 1334
Browse files Browse the repository at this point in the history
Hotfix: Anchor icon path
  • Loading branch information
bilalesi authored Jul 17, 2023
2 parents a337b64 + c0878ad commit 8f52b74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/shared/components/ResourceEditor/ResourceEditor.less
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
&::after {
content: '';
display: inline-block;
background-image: url(../../../shared/images/AnchorLink.svg);
background-image: var(--resource-link-anchor-icon);
background-repeat: no-repeat;
background-size: 14px 14px;
width: 14px;
Expand Down
7 changes: 6 additions & 1 deletion src/shared/components/ResourceEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ import {
} from './useEditorTooltip';
import { DATA_EXPLORER_GRAPH_FLOW_PATH } from '../../store/reducers/data-explorer';
import ResourceResolutionCache from './ResourcesLRUCache';

import './ResourceEditor.less';

const AnchorLinkIcon = require('../../images/AnchorLink.svg');
export interface ResourceEditorProps {
rawData: { [key: string]: any };
onSubmit: (rawData: { [key: string]: any }) => void;
Expand Down Expand Up @@ -204,6 +204,11 @@ const ResourceEditor: React.FunctionComponent<ResourceEditorProps> = props => {
<div
data-testid="resource-editor"
className={valid ? 'resource-editor' : 'resource-editor _invalid'}
style={
{
'--resource-link-anchor-icon': `url(${AnchorLinkIcon})`,
} as React.CSSProperties
}
>
{showControlPanel && (
<div className="control-panel">
Expand Down

0 comments on commit 8f52b74

Please sign in to comment.