Skip to content

Commit 3b6263f

Browse files
committed
Remove size from CodiconButton
1 parent 29aa4a3 commit 3b6263f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

extensions/ql-vscode/src/view/common/icon/CodiconButton.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,11 @@ import * as React from "react";
22
import { styled } from "styled-components";
33
import classNames from "classnames";
44

5-
type Size = "x-small" | "small" | "medium" | "large" | "x-large";
6-
7-
const StyledButton = styled.button<{ size: Size }>`
5+
const StyledButton = styled.button`
86
background: none;
97
color: var(--vscode-textLink-foreground);
108
border: none;
119
cursor: pointer;
12-
font-size: ${(props) => props.size ?? "1em"};
1310
padding: 0;
1411
vertical-align: text-bottom;
1512
@@ -20,22 +17,19 @@ const StyledButton = styled.button<{ size: Size }>`
2017
`;
2118

2219
export const CodiconButton = ({
23-
size,
2420
onClick,
2521
className,
2622
name,
2723
label,
2824
disabled,
2925
}: {
30-
size?: Size;
3126
onClick: (e: React.MouseEvent) => void;
3227
className?: string;
3328
name: string;
3429
label: string;
3530
disabled?: boolean;
3631
}) => (
3732
<StyledButton
38-
size={size}
3933
onClick={onClick}
4034
className={className}
4135
disabled={disabled}

0 commit comments

Comments
 (0)