Skip to content

Commit 91512d1

Browse files
committed
fix: switch to control buttons in ProfileExplorer
1 parent 33bd3da commit 91512d1

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

Diff for: plugins/plugin-codeflare/src/components/ProfileExplorer.tsx

+7-11
Original file line numberDiff line numberDiff line change
@@ -592,31 +592,27 @@ class ProfileCard extends React.PureComponent<ProfileCardProps, ProfileCardState
592592
return (
593593
<Flex flexWrap={this.nowrap} justifyContent={this.flexEnd} spaceItems={this.spaceNone}>
594594
<FlexItem flex={this.flex1}>
595-
<Tooltip position="top" content="Create a new profile">
596-
<Button variant="link" icon={<PlusSquareIcon />} onClick={this._onNew} />
595+
<Tooltip position="top-start" content="Create a new profile">
596+
<Button variant="control" icon={<PlusSquareIcon />} onClick={this._onNew} />
597597
</Tooltip>
598598
</FlexItem>
599599

600600
<FlexItem>
601601
<Tooltip
602-
position="top"
603-
content={
604-
this.state.editable
605-
? "Exit editable mode (disallow choices to be modified)"
606-
: "Enter editable mode (allow choices to be modified)"
607-
}
602+
position="top-start"
603+
content={this.state.editable ? "Lock out changes" : "Unlock, allowing choices to be modified"}
608604
>
609605
<Button
610-
variant="link"
606+
variant="control"
611607
icon={this.state.editable ? <LockOpenIcon /> : <LockIcon />}
612608
onClick={this._onToggleEditable}
613609
/>
614610
</Tooltip>
615611
<Tooltip position="top" content="Reset the choices in this profile">
616-
<Button variant="link" icon={<EraserIcon />} onClick={this._onReset} />
612+
<Button variant="control" icon={<EraserIcon />} onClick={this._onReset} />
617613
</Tooltip>
618614
<Tooltip position="top" content="Delete this profile">
619-
<Button variant="link" icon={<TrashIcon />} onClick={this._onDelete} />
615+
<Button variant="control" icon={<TrashIcon />} onClick={this._onDelete} />
620616
</Tooltip>
621617
</FlexItem>
622618
</Flex>

0 commit comments

Comments
 (0)