Selection outline around plots during pan
Author: bryevdvCreated Sep 2, 2026Updated Sep 7, 2026
Labelstype: discussion
I noticed this on plots in the 4.0.0.dev4 docs: any time I pan, etc, the plot gets a blue dotted selection highlight partly around it:
Is this intended or desirable? @pavithraes @dalthviz @philippjfr ? Can
Codex states it was introduced by PR #14112 and shipped in Bokeh 3.7.0. It suggests the following, does this sound reasonable?
diff --git a/bokehjs/src/less/canvas.less b/bokehjs/src/less/canvas.less --- a/bokehjs/src/less/canvas.less +++ b/bokehjs/src/less/canvas.less @@ -22,7 +22,7 @@ } -.bk-events:focus, .bk-events:focus-visible { +.bk-events:focus-visible { outline: var(--outline-width) var(--outline-style) var(--highlight-color); outline-offset: -1px; }No TypeScript changes are required:
- Panning still focuses the tabIndex=0 event layer.
- Focus still emits the signal that activates WheelZoomTool.
- Pointer-acquired focus—including panning—no longer displays the outline.
- Keyboard-acquired focus retains the outline.
Source: bokeh/bokeh