We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
TextButton
1 parent cd0b2fb commit 3cd0602Copy full SHA for 3cd0602
extensions/ql-vscode/src/view/common/TextButton.tsx
@@ -3,12 +3,12 @@ import { styled } from "styled-components";
3
4
type Size = "x-small" | "small" | "medium" | "large" | "x-large";
5
6
-const StyledButton = styled.button<{ size: Size }>`
+const StyledButton = styled.button<{ $size: Size }>`
7
background: none;
8
color: var(--vscode-textLink-foreground);
9
border: none;
10
cursor: pointer;
11
- font-size: ${(props) => props.size ?? "1em"};
+ font-size: ${(props) => props.$size ?? "1em"};
12
padding: 0;
13
`;
14
@@ -26,7 +26,7 @@ const TextButton = ({
26
children: React.ReactNode;
27
}) => (
28
<StyledButton
29
- size={size}
+ $size={size}
30
onClick={onClick}
31
className={className}
32
title={title}
0 commit comments