File tree Expand file tree Collapse file tree 3 files changed +13
-14
lines changed
extensions/ql-vscode/src/view Expand file tree Collapse file tree 3 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 1
1
/* Styles have been copied from https://vscode-elements.github.io/elements-lite/components/action-button/configurator/ */
2
- .vscode-action-button {
2
+ .actionButton {
3
3
align-items : center;
4
4
background-color : transparent;
5
5
border-color : transparent;
13
13
user-select : none;
14
14
}
15
15
16
- .vscode-action-button : disabled {
16
+ .actionButton : disabled {
17
17
color : var (--vscode-disabledForeground );
18
18
cursor : default;
19
19
pointer-events : none;
20
20
}
21
21
22
- .vscode-action-button .codicon ,
23
- .vscode-action-button svg {
22
+ .actionButton .codicon ,
23
+ .actionButton svg {
24
24
color : var (--vscode-icon-foreground );
25
25
display : block;
26
26
padding : 2px ;
27
27
}
28
28
29
- .vscode-action-button svg {
29
+ .actionButton svg {
30
30
box-sizing : content-box;
31
31
height : 16px ;
32
32
width : 16px ;
33
33
}
34
34
35
- .vscode-action-button : disabled .codicon ,
36
- .vscode-action-button : disabled svg {
35
+ .actionButton : disabled .codicon ,
36
+ .actionButton : disabled svg {
37
37
color : var (--vscode-disabledForeground );
38
38
}
39
39
40
- .vscode-action-button : hover {
40
+ .actionButton : hover {
41
41
background-color : var (--vscode-toolbar-hoverBackground );
42
42
outline : 1px dotted var (--vscode-contrastActiveBorder );
43
43
outline-offset : -1px ;
44
44
}
45
45
46
- .vscode-action-button : active {
46
+ .actionButton : active {
47
47
background-color : var (--vscode-toolbar-activeBackground );
48
48
}
49
49
50
- .vscode-action-button : focus {
50
+ .actionButton : focus {
51
51
outline : none;
52
52
}
53
53
54
- .vscode-action-button : focus-visible {
54
+ .actionButton : focus-visible {
55
55
border-color : var (--vscode-focusBorder );
56
56
}
57
57
Original file line number Diff line number Diff line change 1
- import "./ActionButton.css" ;
1
+ import styles from "./ActionButton.module .css" ;
2
2
3
3
// This is needed because vscode-elements/elements does not implement
4
4
// the same styles for icon buttons as vscode/webview-ui-toolkit
5
5
export const ActionButton = ( props : React . ComponentProps < "button" > ) => (
6
- < button type = "button" { ...props } className = "vscode-action-button" >
6
+ < button type = "button" { ...props } className = { styles . actionButton } >
7
7
{ props . children }
8
8
</ button >
9
9
) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import { styled } from "styled-components";
10
10
import { vscode } from "../vscode-api" ;
11
11
import { Link } from "../common/Link" ;
12
12
import { ActionButton } from "../common/ActionButton/ActionButton" ;
13
- import "../common/ActionButton/ActionButton.css" ;
14
13
15
14
import type { Method } from "../../model-editor/method" ;
16
15
import type { ModeledMethod } from "../../model-editor/modeled-method" ;
You can’t perform that action at this time.
0 commit comments