We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9af0239 commit c316d52Copy full SHA for c316d52
extensions/ql-vscode/src/view/common/Dropdown.tsx
@@ -4,13 +4,15 @@ import { styled } from "styled-components";
4
5
const DISABLED_VALUE = "-";
6
7
-const StyledDropdown = styled.select`
+const StyledDropdown = styled.select<{ disabled?: boolean }>`
8
width: 100%;
9
height: calc(var(--input-height) * 1px);
10
background: var(--vscode-dropdown-background);
11
color: var(--vscode-foreground);
12
border: none;
13
padding: 2px 6px 2px 8px;
14
+ opacity: ${(props) =>
15
+ props.disabled ? "var(--disabled-opacity)" : "inherit"};
16
`;
17
18
type Props = {
0 commit comments