Skip to content

Commit 8fbd12f

Browse files
committed
Update import file button styling
1 parent b20a4d8 commit 8fbd12f

File tree

1 file changed

+8
-7
lines changed
  • workspaces/ballerina/type-editor/src/components/FileSelector

1 file changed

+8
-7
lines changed

workspaces/ballerina/type-editor/src/components/FileSelector/index.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* under the License.
1717
*/
1818
import React from "react";
19-
import { Button, Icon, Typography } from "@wso2/ui-toolkit";
19+
import { LinkButton, Icon, Typography } from "@wso2/ui-toolkit";
2020

2121
export interface FileSelectorProps {
2222
label: string;
@@ -49,17 +49,18 @@ export function FileSelector(props: FileSelectorProps) {
4949
return (
5050
<React.Fragment>
5151
<input hidden={true} accept={`.${extension}`} type="file" onChange={showFile} ref={hiddenFileInput} />
52-
<Button onClick={handleClick} appearance="icon">
52+
<LinkButton onClick={handleClick} sx={{ padding: "3px" }}>
5353
<Icon
5454
name="bi-import"
55-
sx={{ marginRight: "5px" }}
56-
iconSx={{ fontSize: "15px", color: "var(--vscode-charts-purple)" }}
55+
iconSx={{ fontSize: "15px" }}
56+
sx={{ paddingTop: "2px" }}
5757
/>
5858
<Typography
5959
variant="body3"
60-
sx={{ color: "var(--vscode-charts-purple)" }}
61-
>{`Import ${extension.toUpperCase()} File`}</Typography>
62-
</Button>
60+
>
61+
{`Import ${extension.toUpperCase()} File`}
62+
</Typography>
63+
</LinkButton>
6364
</React.Fragment>
6465
);
6566
}

0 commit comments

Comments
 (0)