File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
extensions/ql-vscode/src/view/common/icon Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,11 @@ import * as React from "react";
22import { styled } from "styled-components" ;
33import 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
2219export 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 }
You can’t perform that action at this time.
0 commit comments