diff --git a/src/view/components/Button.tsx b/src/view/components/Button.tsx index 5bd1ed135..c613b5910 100644 --- a/src/view/components/Button.tsx +++ b/src/view/components/Button.tsx @@ -4,6 +4,7 @@ import "../styles/Button.css"; export interface IButtonProps { label: string; image: any; + focusable: boolean; styleLabel: string; width: number; onClick: (event: React.MouseEvent) => void; @@ -13,6 +14,7 @@ export interface IButtonProps { const Button: React.FC = props => { const iconSvg: SVGElement = props.image as SVGElement; const buttonStyle = { width: props.width }; + const tabIndex = props.focusable ? 0 : -1; return ( diff --git a/src/view/components/Simulator.tsx b/src/view/components/Simulator.tsx index ce4f6cda1..41f760f52 100644 --- a/src/view/components/Simulator.tsx +++ b/src/view/components/Simulator.tsx @@ -132,6 +132,7 @@ class Simulator extends React.Component {
diff --git a/src/view/styles/Button.css b/src/view/styles/Button.css index 0d4569e33..5e77bc41b 100644 --- a/src/view/styles/Button.css +++ b/src/view/styles/Button.css @@ -16,17 +16,11 @@ border-radius: 0px 8px 8px 0px; } +.button:focus, .button:hover { background-color: var(--vscode-terminal-selectionBackground); } -.play-button:focus, -.play-button:hover, -.refresh-button:focus, -.refresh-button:hover { - background-color: var(--vscode-terminal-selectionBackground); -} - .button:active { background-color: var(--vscode-editor-selectionHighlightBackground); }