mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-05-04 00:41:33 -07:00
fix: hide overlay focus ring
This commit is contained in:
@@ -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/);
|
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', () => {
|
test('top-level readme avoids stale overlay-layers wording', () => {
|
||||||
const readmeSource = readWorkspaceFile('README.md');
|
const readmeSource = readWorkspaceFile('README.md');
|
||||||
assert.doesNotMatch(readmeSource, /overlay layers/i);
|
assert.doesNotMatch(readmeSource, /overlay layers/i);
|
||||||
|
|||||||
@@ -40,6 +40,12 @@ body {
|
|||||||
'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Arial Unicode MS', Arial, sans-serif;
|
'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Arial Unicode MS', Arial, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html:focus,
|
||||||
|
body:focus,
|
||||||
|
#overlay:focus {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--subtitle-sidebar-reserved-width: 0px;
|
--subtitle-sidebar-reserved-width: 0px;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user