fix: hide overlay focus ring

This commit is contained in:
2026-05-03 23:00:38 -07:00
parent 08dc8871d3
commit 95277f30bd
3 changed files with 15 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
type: fixed
area: overlay
- Hid the browser focus outline on the top-level overlay surface so focused overlays no longer show a yellow/orange viewport border.
@@ -28,6 +28,11 @@ test('renderer stylesheet no longer contains invisible-layer selectors', () => {
assert.doesNotMatch(cssSource, /body\.layer-invisible/);
});
test('renderer stylesheet hides focus chrome on top-level overlay focus targets', () => {
const cssSource = readWorkspaceFile('src/renderer/style.css');
assert.match(cssSource, /html:focus,\s*body:focus,\s*#overlay:focus\s*\{[^}]*outline:\s*none;/s);
});
test('top-level readme avoids stale overlay-layers wording', () => {
const readmeSource = readWorkspaceFile('README.md');
assert.doesNotMatch(readmeSource, /overlay layers/i);
+6
View File
@@ -40,6 +40,12 @@ body {
'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Arial Unicode MS', Arial, sans-serif;
}
html:focus,
body:focus,
#overlay:focus {
outline: none;
}
:root {
--subtitle-sidebar-reserved-width: 0px;