Skip to content

Commit eb9f34b

Browse files
ENH Update focus states to be consistent (#1397)
1 parent a1eaf69 commit eb9f34b

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

client/dist/styles/bundle.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/src/components/ElementEditor/Element.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
&:focus,
99
&:hover {
1010
box-shadow: $z-depth-1;
11-
outline-width: 0;
1211
}
1312

1413
&:hover {
@@ -17,6 +16,12 @@
1716
}
1817
}
1918

19+
&:focus-within {
20+
// Set this explicitly instead of just setting the variable beacause
21+
// we don't want to affect child items
22+
outline-offset: var(--focus-outline-offset-inset);
23+
}
24+
2025
&--broken {
2126
cursor: default;
2227
}

0 commit comments

Comments
 (0)