Skip to content

Commit 0f0ebd6

Browse files
bmxeddEdward Jung
andauthored
fix: Adjust the focus outline for the workspace so it is more visible (#144)
Co-authored-by: Edward Jung <[email protected]>
1 parent b86c6c7 commit 0f0ebd6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@
2929
width: 100%;
3030
max-height: 100%;
3131
position: relative;
32-
--outline-width: 3px;
32+
--outline-width: 5px;
3333
}
3434

35-
.blocklyMainBackground {
36-
height: calc(100% - var(--outline-width));
37-
width: calc(100% - var(--outline-width));
35+
.blocklyWorkspace:focus .blocklyMainBackground {
36+
outline: Highlight solid var(--outline-width);
37+
outline-offset: -5px;
3838
}
3939

4040
.blocklyFlyout {
4141
top: var(--outline-width);
4242
left: var(--outline-width);
43-
height: calc(100% - calc(var(--outline-width) * 2.5));
43+
height: calc(100% - calc(var(--outline-width) * 2));
4444
}
4545

4646
pre,

0 commit comments

Comments
 (0)