Unverified Commit 5d6be0a4 authored by rauno's avatar rauno Committed by GitHub

[dev-tools] Consistent focus states for buttons (#81114)

Trivial PR. Just makes sure we use our `--focus-ring` CSS variable for
focus states.

![CleanShot 2025-07-01 at 13 18
05@2x](https://github.com/user-attachments/assets/c3f7aded-0644-4a46-850d-8d5e4e379084)
parent 7a05d5d2
...@@ -348,8 +348,7 @@ export const DEVTOOLS_PANEL_STYLES = css` ...@@ -348,8 +348,7 @@ export const DEVTOOLS_PANEL_STYLES = css`
padding: 4px 12px; padding: 4px 12px;
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
transition: background-color 200ms ease;
transition: all 0.2s ease;
&:hover { &:hover {
background-color: var(--color-gray-200); background-color: var(--color-gray-200);
...@@ -397,7 +396,9 @@ export const DEVTOOLS_PANEL_STYLES = css` ...@@ -397,7 +396,9 @@ export const DEVTOOLS_PANEL_STYLES = css`
padding: 6px; padding: 6px;
color: var(--color-gray-1000); color: var(--color-gray-1000);
border-radius: 4px; border-radius: 4px;
transition: all 0.2s ease; transition-property: background-color, color;
transition-duration: 200ms;
transition-timing-function: ease;
&:hover { &:hover {
background-color: var(--color-gray-200); background-color: var(--color-gray-200);
......
...@@ -141,7 +141,7 @@ export function Base({ scale = 1 }: { scale?: DevToolsScale }) { ...@@ -141,7 +141,7 @@ export function Base({ scale = 1 }: { scale?: DevToolsScale }) {
&:hover { &:hover {
color: var(--color-blue-900); color: var(--color-blue-900);
} }
&:focus { &:focus-visible {
outline: var(--focus-ring); outline: var(--focus-ring);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment