Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.
This repository was archived by the owner on Apr 16, 2026. It is now read-only.

Scrollbar gets outline when focused #6412

Closed

Description

This issue can be noted on chromium browsers(Chrome, Edge, etc., but not Firefox). When there is overflow, and the scroll bar appears(vertical or horizontal), holding/clicking on it causes there to be a sudden outline box. An easy way to see this is to go to one of the demo pages and just click on the scrollbar. If you're focused on an element outside of the editing box, and then press the scrollbar, it remains outlined. If you are focused on an element in the editing box and press on the scrollbar, it appears for a split second.

.CodeMirror-vscrollbar, .CodeMirror-hscrollbar {
    outline: none;
}

Adding the code above in an external stylesheet removed the problem, although there might be a better solution, or there is a deeper issue causing this.

Activity

  1. marijnh commented on Sep 13, 2020

    @marijnh
    Member

    It seems that scrollable elements are focusable, and this can not be disabled. I didn't find a better way to avoid this than to hide the outline with CSS, so I've done that in fd2e322

  2. added a commit that references this issue on Oct 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions