File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
extensions/ql-vscode/src/view/common/ActionButton Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change
1
+ /* Styles have been copied from https://vscode-elements.github.io/elements-lite/components/action-button/configurator/ */
2
+
1
3
.vscode-action-button {
2
4
align-items : center;
3
5
background-color : transparent;
38
40
39
41
.vscode-action-button : hover {
40
42
background-color : var (--vscode-toolbar-hoverBackground );
43
+ outline : 1px dotted var (--vscode-contrastActiveBorder );
44
+ outline-offset : -1px ;
41
45
}
42
46
43
47
.vscode-action-button : active {
Original file line number Diff line number Diff line change @@ -3,10 +3,8 @@ import "./ActionButton.css";
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
// eslint-disable-next-line @typescript-eslint/no-explicit-any
6
- export const ActionButton = ( props : any ) => {
7
- return (
8
- < button type = "button" className = "vscode-action-button" { ...props } >
9
- { props . children }
10
- </ button >
11
- ) ;
12
- } ;
6
+ export const ActionButton = ( props : any ) => (
7
+ < button type = "button" { ...props } className = "vscode-action-button" >
8
+ { props . children }
9
+ </ button >
10
+ ) ;
You can’t perform that action at this time.
0 commit comments