Skip to content

Commit

Permalink
Replace button with a link in title editor description
Browse files Browse the repository at this point in the history
Signed-off-by: srikant <[email protected]>
  • Loading branch information
srikant-ch5 committed Jan 20, 2025
1 parent 340e4b0 commit 25854af
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import Isvg from "react-inlinesvg";
import { get } from "lodash";
import classNames from "classnames";
import { Help, Edit, Close, Information } from "@carbon/react/icons";
import { TextInput, Button, Layer } from "@carbon/react";
import { TextInput, Button, Layer, Link } from "@carbon/react";
import { Toggletip, ToggletipButton, ToggletipContent, ToggletipActions } from "@carbon/react";

import { setTitle } from "./../../actions";
Expand Down Expand Up @@ -142,14 +142,13 @@ class TitleEditor extends Component {
// If description is present and has a link, show help button
const tooltipButton = isDescWithLink ? (
<ToggletipActions>
<Button
<Link
className="properties-title-editor-desc-btn desc-help"
onClick={this.helpClickHandler}
data-id="desc-help"
size="sm"
>
{helpButtonLabel}
</Button>
</Link>
</ToggletipActions>
) : null;

Expand Down

0 comments on commit 25854af

Please sign in to comment.